diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-01-12 16:58:08 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-01-12 16:58:08 +0000 |
commit | c8a77dfe4d3d307c1d5dd2650b7297447d8b609d (patch) | |
tree | 9ea78393bc3ecd6ab4de449383d4e97e5f3648ae /sys-apps/man-db/files/man-db.cron-r1 | |
parent | 2891d29af8907ce881662f4a02844926d7a293c7 (diff) |
gentoo resync : 12.01.2019
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 |