]> git.deb.at Git - deb/packages.git/commitdiff
050checkinst: Be more allowing when checking the permissions of the cache directory
authorFrank Lichtenheld <frank@lichtenheld.de>
Fri, 20 Jun 2008 23:23:13 +0000 (01:23 +0200)
committerFrank Lichtenheld <frank@lichtenheld.de>
Fri, 20 Jun 2008 23:23:13 +0000 (01:23 +0200)
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

index 55ee6c7556bcd2822199c77151b6d8e27761dce2..9e863db8b2a58cc91629d86467bff01ba90ec4cf 100755 (executable)
@@ -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