From 5160670004538f75877c805ac85b43c3743e9a19 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Tue, 21 Mar 2017 15:48:56 +0100 Subject: [PATCH] saving uncommitted changes in /etc prior to emerge run --- cron.daily/man-db | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cron.daily/man-db b/cron.daily/man-db index ced6390..b3794f2 100755 --- a/cron.daily/man-db +++ b/cron.daily/man-db @@ -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 -- 2.39.5