]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Imporing receiver init script (starting.sh exit)
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Wed, 18 Jun 2025 20:41:17 +0000 (16:41 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Wed, 18 Jun 2025 20:41:17 +0000 (16:41 -0400)
support/starting.sh

index d125ad04067a4c2ec001423d1b37ff352dd5f044..2583a831c2fea1130bbd719f6b8836dca3e18f17 100755 (executable)
@@ -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