diff options
Diffstat (limited to 'sys-apps/man-db/files/man-db.cron-r1')
-rw-r--r-- | sys-apps/man-db/files/man-db.cron-r1 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys-apps/man-db/files/man-db.cron-r1 b/sys-apps/man-db/files/man-db.cron-r1 new file mode 100644 index 000000000000..7f7932360cb8 --- /dev/null +++ b/sys-apps/man-db/files/man-db.cron-r1 @@ -0,0 +1,11 @@ +#!/bin/sh + +# Use same perms/settings as the ebuild. +cachedir="/var/cache/man" +if [ ! -d "${cachedir}" ]; then + mkdir -p "${cachedir}" + chown man:man "${cachedir}" + chmod 0755 "${cachedir}" +fi + +exec su man -s /bin/sh -c 'nice mandb --quiet' 2>/dev/null |