Fix exit codes in zoneminder.config

This commit is contained in:
Emmanuel Papin 2014-12-03 18:22:19 +01:00
parent da3467aa77
commit bdc2b383de
1 changed files with 6 additions and 3 deletions

View File

@ -13,7 +13,7 @@ db_set zoneminder/debconf_install true
db_input high zoneminder/debconf_install || true
db_go || true
# Exit if the user didn't want to use debconf
# Exit if the user does not want to use debconf
db_get zoneminder/debconf_install
if [ "$RET" = false ]; then
exit 0
@ -23,8 +23,8 @@ fi
if [ -e $CONFIGFILE ]; then
. $CONFIGFILE || true
else
# Exit if no config file
exit 0
# Exit with error if no config file
exit 1
fi
if [ "$ZM_DB_TYPE" = mysql ]; then
@ -39,6 +39,9 @@ if [ "$ZM_DB_TYPE" = mysql ]; then
exit 0
fi
fi
else
# Exit with error, currently we only support mysql
exit 1
fi
if [ -f /usr/share/dbconfig-common/dpkg/config ]; then