]> git.sur5r.net Git - bacula/bacula/commitdiff
Allow options create_postgresql_database from patch in bug #2075 by roos
authorKern Sibbald <kern@sibbald.com>
Sat, 12 Jul 2014 09:04:19 +0000 (11:04 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 12 Jul 2014 09:04:19 +0000 (11:04 +0200)
bacula/src/cats/create_postgresql_database.in

index 70cf106ccb3e718897e1d3a95837f730676a9b7f..c9e7f0cd7f0cf4a8cf6b5ebea182d90c1138eca6 100644 (file)
@@ -67,7 +67,7 @@ else
    echo "!!!! Creation of ${db_name} database failed. !!!!"
    echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
 fi
-if psql -l ${dbname} | grep " ${db_name}.*SQL_ASCII" >/dev/null; then 
+if psql -l ${dbname} $* | grep " ${db_name}.*SQL_ASCII" >/dev/null; then 
    echo "Database encoding OK"
 else
    echo " "