]> git.donarmstrong.com Git - deb_pkgs/libapache-gallery-perl.git/blobdiff - debian/cron.daily
* Create var/cache/www and make it writable by www-data (Closes: #710281)
[deb_pkgs/libapache-gallery-perl.git] / debian / cron.daily
index 0fe36db8cd302a8a7cf7774e93f3143a3f23cf69..3a80f98f37ace16a0502edd8e102f9dad4b5488a 100644 (file)
@@ -17,7 +17,7 @@ if [ -d "$cachedir" ]; then
     # remove empty directories
     start-stop-daemon --start --pidfile /dev/null --startas /bin/sh \
        --oknodo --chuid "$user" -- -c \
-       "find '$cachedir' -depth -type d -print0 | \
+       "find '$cachedir' -mindepth 1 -depth -type d -print0 | \
         xargs -r0 rmdir --ignore-fail-on-non-empty"
 fi