summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/man-db/files/man-db.cron')
-rw-r--r--sys-apps/man-db/files/man-db.cron9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys-apps/man-db/files/man-db.cron b/sys-apps/man-db/files/man-db.cron
index ced63900fca6..d94e594d1acf 100644
--- a/sys-apps/man-db/files/man-db.cron
+++ b/sys-apps/man-db/files/man-db.cron
@@ -1,10 +1,11 @@
#!/bin/sh
# Use same perms/settings as the ebuild.
-if [ ! -d /var/cache/man ]; then
- mkdir -p /var/cache/man
- chown man:root /var/cache/man
- chmod 2755 /var/cache/man
+cachedir="/var/cache/man"
+if [ ! -d ${cachedir} ]; then
+ mkdir -p "${cachedir}"
+ chown man:man "${cachedir}"
+ chmod 0755 "${cachedir}"
fi
exec nice mandb --quiet