]> git.deb.at Git - deb/packages.git/blobdiff - cron.d/050checkinst
050checkinst: Be more allowing when checking the permissions of the cache directory
[deb/packages.git] / 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