From: Jean-Marc Pigeon (Delson) Date: Wed, 18 Jun 2025 20:41:17 +0000 (-0400) Subject: Imporing receiver init script (starting.sh exit) X-Git-Tag: tag-0.9~93 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=198ad2af2aec21835980656c28e392709617fb2a;p=jmp%2Fmailleur Imporing receiver init script (starting.sh exit) --- diff --git a/support/starting.sh b/support/starting.sh index d125ad0..2583a83 100755 --- a/support/starting.sh +++ b/support/starting.sh @@ -52,6 +52,9 @@ case "$DB_TYPE" in ;; "POSTGRESQL" ) /usr/lib/$APPNAME/support/crdb.sh "/" + if [ $? != 0 ] ; then + exit -1 + fi ;; "TO_BE_DEFINED" ) echo "You must install $APPNAME with a DB flavor (ex: $APPNAME-pgsql, $APPNAME-mysql)" @@ -84,7 +87,7 @@ if [ ! -f /etc/$APPNAME/config.done ] ; then ;; * ) echo "sh_mkconf: Unexpected OS=$OS, exiting!" - exit 1 + exit -1 ;; esac date > /etc/$APPNAME/config.done