]> git.sur5r.net Git - bacula/bacula/commitdiff
Set exit code for create_postgresql_database.in
authorKern Sibbald <kern@sibbald.com>
Mon, 15 Feb 2016 07:50:15 +0000 (17:50 +1000)
committerKern Sibbald <kern@sibbald.com>
Mon, 15 Feb 2016 07:50:46 +0000 (17:50 +1000)
bacula/src/cats/create_postgresql_database.in

index a823607b17728d68d8b7379c40caafa0b60a7b6b..940ee965df964971d27e63051c0a2f711c27bd1e 100644 (file)
@@ -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