From 4437ea7b4ff092a86b1eb88eafb088707cb00aea Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Mon, 15 Feb 2016 17:50:15 +1000 Subject: [PATCH] Set exit code for create_postgresql_database.in --- bacula/src/cats/create_postgresql_database.in | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.5