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_input high zoneminder/debconf_install || true
db_go || 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 db_get zoneminder/debconf_install
if [ "$RET" = false ]; then if [ "$RET" = false ]; then
exit 0 exit 0
@ -23,8 +23,8 @@ fi
if [ -e $CONFIGFILE ]; then if [ -e $CONFIGFILE ]; then
. $CONFIGFILE || true . $CONFIGFILE || true
else else
# Exit if no config file # Exit with error if no config file
exit 0 exit 1
fi fi
if [ "$ZM_DB_TYPE" = mysql ]; then if [ "$ZM_DB_TYPE" = mysql ]; then
@ -39,6 +39,9 @@ if [ "$ZM_DB_TYPE" = mysql ]; then
exit 0 exit 0
fi fi
fi fi
else
# Exit with error, currently we only support mysql
exit 1
fi fi
if [ -f /usr/share/dbconfig-common/dpkg/config ]; then if [ -f /usr/share/dbconfig-common/dpkg/config ]; then