From f100798b1edee866c3679b1c1a4b84b578f02bd4 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 15 Feb 2017 17:39:04 -0500 Subject: system/man-db: Updated for version 2.7.6.1. --- system/man-db/man-db.cron | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'system/man-db/man-db.cron') diff --git a/system/man-db/man-db.cron b/system/man-db/man-db.cron index d25bf3b5ec71b..93c3a00ff2c64 100644 --- a/system/man-db/man-db.cron +++ b/system/man-db/man-db.cron @@ -9,7 +9,7 @@ set -e if ! [ -d /var/cache/man ]; then # Recover from deletion, per FHS. mkdir -p /var/cache/man - chown man:root /var/cache/man || true + chown root:root /var/cache/man || true chmod 2755 /var/cache/man fi @@ -19,5 +19,12 @@ fi # some day. #find /var/cache/man -type f -name '*.gz' -atime +6 -print0 | xargs -r0 rm -f &> /dev/null -# regenerate man database -[ -x /opt/man-db/bin/mandb ] && /opt/man-db/bin/mandb --no-purge --quiet +# regenerate man database. /opt/man-db/bin probably isn't in cron's $PATH, +# so check for it specially, otherwise use $PATH. +if [ -x /opt/man-db/bin/mandb ]; then + MANDB=/opt/man-db/bin/mandb +else + MANDB=mandb +fi + +$MANDB --no-purge --quiet -- cgit v1.2.3