From: Kern Sibbald Date: Sat, 12 Jul 2014 09:04:19 +0000 (+0200) Subject: Allow options create_postgresql_database from patch in bug #2075 by roos X-Git-Tag: Release-7.0.5~45 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=58fa6bae8c588e09b0acf2e6ff463b8388df7b04;p=bacula%2Fbacula Allow options create_postgresql_database from patch in bug #2075 by roos --- diff --git a/bacula/src/cats/create_postgresql_database.in b/bacula/src/cats/create_postgresql_database.in index 70cf106ccb..c9e7f0cd7f 100644 --- a/bacula/src/cats/create_postgresql_database.in +++ b/bacula/src/cats/create_postgresql_database.in @@ -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 " "