Fix permissions on /etc/zm/zm.conf as requested by the debian policy

This commit is contained in:
Emmanuel Papin 2014-12-07 11:51:08 +01:00
parent aab181ffa6
commit f2168f50d1
2 changed files with 7 additions and 1 deletions

View File

@ -110,7 +110,10 @@ override_dh_install:
override_dh_fixperms: override_dh_fixperms:
dh_fixperms dh_fixperms
chown root:root debian/zoneminder/etc/zm/zm.conf #
# As requested by the Debian Webapps Policy Manual §3.2.1
chown root:www-data debian/zoneminder/etc/zm/zm.conf
chmod 640 debian/zoneminder/etc/zm/zm.conf
override_dh_auto_test: override_dh_auto_test:
# do not run tests... # do not run tests...

View File

@ -130,6 +130,9 @@ if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ]; then
if [ -z "$2" ]; then if [ -z "$2" ]; then
chown $ZM_WEB_USER:$ZM_WEB_GROUP -R /var/cache/zoneminder chown $ZM_WEB_USER:$ZM_WEB_GROUP -R /var/cache/zoneminder
fi fi
# As requested by the Debian Webapps Policy Manual §3.2.1
chown root:$ZM_WEB_GROUP /etc/zm/zm.conf
chmod 640 /etc/zm/zm.conf
# Configure the web server # Configure the web server
db_get zoneminder/webserver db_get zoneminder/webserver