diff --git a/distros/beowulf/zoneminder.postinst b/distros/beowulf/zoneminder.postinst index 032595355a..250d7a53b7 100644 --- a/distros/beowulf/zoneminder.postinst +++ b/distros/beowulf/zoneminder.postinst @@ -2,11 +2,21 @@ set -e +# zm.conf is not shell; read it the way ZoneMinder's PHP and Perl readers do. +zm_load_config () { + [ -r "$1" ] || return 0 + while IFS=' ' read -r zm_name zm_value; do + eval "$zm_name=\$zm_value" + done <