From 4c44c32a62020c5d0ae03295760d5cabec591d60 Mon Sep 17 00:00:00 2001 From: Matthew Trescott Date: Tue, 6 Mar 2018 19:23:01 -0500 Subject: [PATCH] Allow db username/password setting in conf.d --- distros/ubuntu1804/zoneminder.postinst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/distros/ubuntu1804/zoneminder.postinst b/distros/ubuntu1804/zoneminder.postinst index 4c72a3ba3..e3cd72343 100644 --- a/distros/ubuntu1804/zoneminder.postinst +++ b/distros/ubuntu1804/zoneminder.postinst @@ -5,6 +5,9 @@ set -e if [ "$1" = "configure" ]; then . /etc/zm/zm.conf + for CONFFILE in /etc/zm/conf.d/*.conf; do + . "$CONFFILE" + 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