Don't be recursive when chowning /var/cache/zoneminder

This commit is contained in:
Isaac Connor 2016-04-20 14:38:51 -04:00
parent e473839704
commit 02a56b811b
3 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ if [ "$1" = "configure" ]; then
chown www-data:root /var/log/zm chown www-data:root /var/log/zm
chown www-data:www-data /var/lib/zm chown www-data:www-data /var/lib/zm
if [ -z "$2" ]; then if [ -z "$2" ]; then
chown www-data:www-data -R /var/cache/zoneminder chown www-data:www-data /var/cache/zoneminder /var/cache/zoneminder/*
fi fi
# Do this every time the package is installed or upgraded # Do this every time the package is installed or upgraded

View File

@ -10,7 +10,7 @@ if [ "$1" = "configure" ]; then
chown www-data:root /var/log/zm chown www-data:root /var/log/zm
chown www-data:www-data /var/lib/zm chown www-data:www-data /var/lib/zm
if [ -z "$2" ]; then if [ -z "$2" ]; then
chown www-data:www-data -R /var/cache/zoneminder chown www-data:www-data /var/cache/zoneminder /var/cache/zoneminder/*
fi fi
# Do this every time the package is installed or upgraded # Do this every time the package is installed or upgraded

View File

@ -10,7 +10,7 @@ if [ "$1" = "configure" ]; then
chown www-data:root /var/log/zm chown www-data:root /var/log/zm
chown www-data:www-data /var/lib/zm chown www-data:www-data /var/lib/zm
if [ -z "$2" ]; then if [ -z "$2" ]; then
chown www-data:www-data -R /var/cache/zoneminder chown www-data:www-data /var/cache/zoneminder /var/cache/zoneminder/*
fi fi
# Do this every time the package is installed or upgraded # Do this every time the package is installed or upgraded