diff options
author | Matteo Bernardini | 2019-11-02 09:32:55 +0100 |
---|---|---|
committer | Matteo Bernardini | 2019-11-02 09:32:55 +0100 |
commit | a5dc6f94e982a5133196f66fb2d33756063bbe57 (patch) | |
tree | ea496620a3bb4185e47b08377b9c82c640f8058c /system/man-db/man-db.cron | |
parent | 833a418a9448f32874014c89bf70b7f065bdb220 (diff) | |
download | slackbuilds-a5dc6f94e982a5133196f66fb2d33756063bbe57.tar.gz |
20191102.1 global branch merge.current-20191102.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/man-db/man-db.cron')
-rw-r--r-- | system/man-db/man-db.cron | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/system/man-db/man-db.cron b/system/man-db/man-db.cron deleted file mode 100644 index 93c3a00ff2..0000000000 --- a/system/man-db/man-db.cron +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh - -# man-db daily cronjob, part of the slackbuilds.org man-db package. -# Author: B. Watson. -# Adapted from Debian's man-db package, so I guess the license is GPL. - -set -e - -if ! [ -d /var/cache/man ]; then - # Recover from deletion, per FHS. - mkdir -p /var/cache/man - chown root:root /var/cache/man || true - chmod 2755 /var/cache/man -fi - -# expunge old catman pages which have not been read in a week -# commented out, as we've got cat pages disabled in this build. Left -# here for reference in case someone really wants to enable cat pages -# some day. -#find /var/cache/man -type f -name '*.gz' -atime +6 -print0 | xargs -r0 rm -f &> /dev/null - -# 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 |