Move call to zmupdate.pl in core package because it requires zm.conf file and perl libraries

pull/646/head
Emmanuel Papin 2014-12-19 16:32:36 +01:00
parent ae1bf955e5
commit 5457d5c5e5
2 changed files with 12 additions and 12 deletions

View File

@ -63,6 +63,18 @@ if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ]; then
chmod 640 $CONFIGFILE
fi
# Do this every time the package is installed or upgraded
# Test for database presence to avoid failure of zmupdate.pl
if [ "$dbc_install" = "true" ] && [ "$1" = "configure" ]; then
# Ensure zoneminder is stopped
deb-systemd-invoke stop zoneminder.service || exit $?
# Run the ZoneMinder update tool
zmupdate.pl
fi
#DEBHELPER#
exit 0

View File

@ -74,18 +74,6 @@ if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ]; then
mysql_update
fi
# Do this every time the package is installed or upgraded
# Test for database presence to avoid failure of zmupdate.pl
if [ "$dbc_install" = "true" ] && [ "$1" = "configure" ]; then
# Ensure zoneminder is stopped
deb-systemd-invoke stop zoneminder.service || exit $?
# Run the ZoneMinder update tool
zmupdate.pl
fi
#DEBHELPER#
exit 0