From a03f40020435a3fc1bca19e8cc4d3613ff6e882f Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Sat, 21 Jun 2008 01:23:13 +0200 Subject: [PATCH] 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. --- cron.d/050checkinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2