summaryrefslogtreecommitdiff
path: root/sys-apps/man-db/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-apps/man-db/files
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/man-db/files')
-rw-r--r--sys-apps/man-db/files/man-db.cron11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys-apps/man-db/files/man-db.cron b/sys-apps/man-db/files/man-db.cron
new file mode 100644
index 000000000000..b3794f255734
--- /dev/null
+++ b/sys-apps/man-db/files/man-db.cron
@@ -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 nice mandb --quiet