diff options
author | B. Watson <yalhcru@gmail.com> | 2017-02-15 17:39:04 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-02-18 07:54:16 +0700 |
commit | f100798b1edee866c3679b1c1a4b84b578f02bd4 (patch) | |
tree | f6bfc6cf2828df72574a2af310da46917dcb9793 /system/man-db/man-db.cron | |
parent | 720d6700bb27e710ea48f1f577ead4bec40ca538 (diff) |
system/man-db: Updated for version 2.7.6.1.
Diffstat (limited to 'system/man-db/man-db.cron')
-rw-r--r-- | system/man-db/man-db.cron | 13 |
1 files changed, 10 insertions, 3 deletions
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 |