Package: zoneminder
Version: 1.24.2-6
Severity: important
Tags: patch

with the recent version of zoneminder, upgrades chown /var/cache/zoneminder
recursively, which can take quite some time for installs with a lot of data,
during which zoneminder is not running.

this shouldn't be necessary during upgrades, as previous upgrades should have
already ensured this directory is properly owned.

i think either of the following two patches should resolve the issue:

diff -r eaa835a73081 debian/postinst
--- a/debian/postinst   Fri Sep 10 10:51:34 2010 -0700
+++ b/debian/postinst   Wed Sep 15 20:29:07 2010 -0700
@@ -37,6 +37,8 @@
                fi
                chown www-data:www-data /var/log/zm
                chown www-data:www-data /var/lib/zm/
-               chown www-data:www-data -R /var/cache/zoneminder
+               if [ -z "$2" ]; then
+                       chown www-data:www-data -R /var/cache/zoneminder
+               fi
 fi
 #DEBHELPER#


OR.....


diff -r eaa835a73081 debian/postinst
--- a/debian/postinst   Fri Sep 10 10:51:34 2010 -0700
+++ b/debian/postinst   Wed Sep 15 20:27:25 2010 -0700
@@ -37,6 +37,9 @@
                fi
                chown www-data:www-data /var/log/zm
                chown www-data:www-data /var/lib/zm/
-               chown www-data:www-data -R /var/cache/zoneminder
+               chown www-data:www-data /var/cache/zoneminder
+               chown www-data:www-data /var/cache/zoneminder/events/
+               chown www-data:www-data /var/cache/zoneminder/images/
+               chown www-data:www-data /var/cache/zoneminder/temp/
 fi
 #DEBHELPER#


live well,
  vagrant



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to