]> Frank Brehm's Git Trees - config/berta/etc.git/commitdiff
saving uncommitted changes in /etc prior to emerge run
authorFrank Brehm <frank@brehm-online.com>
Tue, 21 Mar 2017 14:48:56 +0000 (15:48 +0100)
committerFrank Brehm <frank@brehm-online.com>
Tue, 21 Mar 2017 14:48:56 +0000 (15:48 +0100)
cron.daily/man-db

index ced63900fca68ef4f1a29141aaa125ef1c7ca236..b3794f255734121683feaeb5751cf9d18ba75ca7 100755 (executable)
@@ -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