From 0d9f330356cc24b84a0e8b3ff51ea5f0c6dede4f Mon Sep 17 00:00:00 2001 From: Andrew Bauer Date: Sun, 10 Dec 2017 13:14:39 -0600 Subject: [PATCH] call zmcamtool during postinst (#2021) --- distros/ubuntu1204/zoneminder.postinst | 4 ++++ .../ubuntu1504_cmake_split_packages/zoneminder-core.postinst | 3 +++ distros/ubuntu1604/zoneminder.postinst | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/distros/ubuntu1204/zoneminder.postinst b/distros/ubuntu1204/zoneminder.postinst index d01d27925..10bdaca2e 100644 --- a/distros/ubuntu1204/zoneminder.postinst +++ b/distros/ubuntu1204/zoneminder.postinst @@ -38,6 +38,10 @@ if [ "$1" = "configure" ]; then zmupdate.pl --nointeractive zmupdate.pl --nointeractive -f + + # Add any new PTZ control configurations to the database (will not overwrite) + zmcamtool.pl --import >/dev/null 2>&1 + else echo 'NOTE: mysql not running, please start mysql and run dpkg-reconfigure zoneminder when it is running.' fi diff --git a/distros/ubuntu1504_cmake_split_packages/zoneminder-core.postinst b/distros/ubuntu1504_cmake_split_packages/zoneminder-core.postinst index da2b444fe..5a4e5694d 100644 --- a/distros/ubuntu1504_cmake_split_packages/zoneminder-core.postinst +++ b/distros/ubuntu1504_cmake_split_packages/zoneminder-core.postinst @@ -73,6 +73,9 @@ if [ "$dbc_install" = "true" ] && [ "$1" = "configure" ]; then # Run the ZoneMinder update tool zmupdate.pl --nointeractive + # Add any new PTZ control configurations to the database (will not overwrite) + zmcamtool.pl --import >/dev/null 2>&1 + fi #DEBHELPER# diff --git a/distros/ubuntu1604/zoneminder.postinst b/distros/ubuntu1604/zoneminder.postinst index e06cdd3b5..d2cef7804 100644 --- a/distros/ubuntu1604/zoneminder.postinst +++ b/distros/ubuntu1604/zoneminder.postinst @@ -47,6 +47,10 @@ if [ "$1" = "configure" ]; then zmupdate.pl --nointeractive zmupdate.pl --nointeractive -f + + # Add any new PTZ control configurations to the database (will not overwrite) + zmcamtool.pl --import >/dev/null 2>&1 + else echo 'NOTE: mysql not running, please start mysql and run dpkg-reconfigure zoneminder when it is running.' fi