tarsnap: fix up permissions of existing cache directories

This commit is contained in:
Aristid Breitkreuz 2015-05-04 18:58:19 +00:00
parent 3e17d6e958
commit 5ccbfb2dcc

View File

@ -249,6 +249,8 @@ in
script = ''
mkdir -p -m 0755 ${dirOf cfg.cachedir}
mkdir -p -m 0700 ${cfg.cachedir}
chown root:root ${cfg.cachedir}
chmod 0700 ${cfg.cachedir}
DIRS=`cat /etc/tarsnap/$1.dirs`
exec tarsnap --configfile /etc/tarsnap/$1.conf -c -f $1-$(date +"%Y%m%d%H%M%S") $DIRS
'';