man-db: add a daily cron job to rebuild manpages cache.
--HG-- extra : convert_revision : 87e1ba47ca266f9a0510d38f94927815bf33da79
This commit is contained in:
parent
4789159633
commit
94c9995cb7
2 changed files with 25 additions and 0 deletions
17
templates/man-db/files/man-db.cron-daily
Executable file
17
templates/man-db/files/man-db.cron-daily
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue