From a888dac8341a5479a3f60c73c5ab820d5df5d917 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 23 Feb 2018 09:30:47 -0500 Subject: [PATCH] source files in /etc/zm/conf.d as well --- distros/debian/postinst | 3 +++ distros/ubuntu1204/zoneminder.postinst | 4 ++++ distros/ubuntu1604/zoneminder.postinst | 3 +++ 3 files changed, 10 insertions(+) diff --git a/distros/debian/postinst b/distros/debian/postinst index 20f715793..3cd3fd277 100644 --- a/distros/debian/postinst +++ b/distros/debian/postinst @@ -5,6 +5,9 @@ set -e if [ "$1" = "configure" ]; then . /etc/zm/zm.conf + for i in /etc/zm/conf.d/*.conf; do + . $i + done; # The logs can contain passwords, etc... so by setting group root, only www-data can read them, not people in the www-data group. chown www-data:root /var/log/zm diff --git a/distros/ubuntu1204/zoneminder.postinst b/distros/ubuntu1204/zoneminder.postinst index 06b976037..ef715375b 100644 --- a/distros/ubuntu1204/zoneminder.postinst +++ b/distros/ubuntu1204/zoneminder.postinst @@ -5,6 +5,10 @@ set -e if [ "$1" = "configure" ]; then . /etc/zm/zm.conf + for i in /etc/zm/conf.d/*.conf; do + . $i + done; + # The logs can contain passwords, etc... so by setting group root, only www-data can read them, not people in the www-data group chown www-data:root /var/log/zm diff --git a/distros/ubuntu1604/zoneminder.postinst b/distros/ubuntu1604/zoneminder.postinst index 3d8e09a1c..d69619b54 100644 --- a/distros/ubuntu1604/zoneminder.postinst +++ b/distros/ubuntu1604/zoneminder.postinst @@ -5,6 +5,9 @@ set -e if [ "$1" = "configure" ]; then . /etc/zm/zm.conf + for i in /etc/zm/conf.d/*.conf; do + . $i + done; # The logs can contain passwords, etc... so by setting group root, only www-data can read them, not people in the www-data group chown www-data:root /var/log/zm