void-packages/templates/man-db/files/man-db.cron-daily
Juan RP 94c9995cb7 man-db: add a daily cron job to rebuild manpages cache.
--HG--
extra : convert_revision : 87e1ba47ca266f9a0510d38f94927815bf33da79
2009-03-28 18:52:00 +01:00

17 lines
249 B
Bash
Executable file

#!/bin/sh
# taken from Debian
# man-db cron daily
set -e
if ! [ -d /var/cache/man ]; then
# Recover from deletion, per FHS.
mkdir -p /var/cache/man
chmod 755 /var/cache/man
fi
# regenerate man database
/usr/bin/mandb --quiet
exit 0