From: Frank Lichtenheld Date: Fri, 20 Jun 2008 23:23:13 +0000 (+0200) Subject: 050checkinst: Be more allowing when checking the permissions of the cache directory X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=a03f40020435a3fc1bca19e8cc4d3613ff6e882f;p=deb%2Fpackages.git 050checkinst: Be more allowing when checking the permissions of the cache directory Previously this required a specific permission (2770), now only require that at least one of owner and group is www-data and has write access. --- diff --git a/cron.d/050checkinst b/cron.d/050checkinst index 55ee6c7..9e863db 100755 --- a/cron.d/050checkinst +++ b/cron.d/050checkinst @@ -18,7 +18,7 @@ then then echo "cachedir missing." >> $cache else - perm=$(ls -ld "$cachedir" | perl -ne 'print "ok" if /^drwxrws--- \d+ www-data/') + perm=$(ls -ld "$cachedir" | perl -ne 'print "ok" if /^drwx...... \d+ www-data/ || /^d...rws... \d+ [\w-]+\/www-data/' if [ -z "$perm" ] then echo "cachedir has wrong permissions." >> $cache