From: Kern Sibbald Date: Mon, 15 Feb 2016 07:50:15 +0000 (+1000) Subject: Set exit code for create_postgresql_database.in X-Git-Tag: Release-7.4.0a~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4437ea7b4ff092a86b1eb88eafb088707cb00aea;p=bacula%2Fbacula Set exit code for create_postgresql_database.in --- diff --git a/bacula/src/cats/create_postgresql_database.in b/bacula/src/cats/create_postgresql_database.in index a823607b17..940ee965df 100644 --- a/bacula/src/cats/create_postgresql_database.in +++ b/bacula/src/cats/create_postgresql_database.in @@ -54,6 +54,7 @@ else echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" echo "!!!! Creation of ${db_name} database failed. !!!!" echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" + exit 1 fi if psql -l | grep " ${db_name}.*SQL_ASCII" >/dev/null; then echo "Database encoding OK" @@ -61,4 +62,5 @@ else echo " " echo "Database encoding bad. Do not use this database" echo " " + exit 1 fi