]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/create_ingres_database.in
Split messages line by line before sending it to syslog() fix #3325
[bacula/bacula] / bacula / src / cats / create_ingres_database.in
index 1e4973de705a52006cbe0be5c9b17909a2dcd4c3..42ae2d946443fe1cf6821c7a4f969e2a5c788bd0 100755 (executable)
@@ -3,9 +3,10 @@
 # shell script to create Bacula database(s)
 #
 
-bindir=@SQL_BINDIR@
+bindir=@INGRES_BINDIR@
 PATH="$bindir:$PATH"
-db_name=@db_name@
+db_name=${db_name:-@db_name@}
+db_user=${db_user:-@db_user@}
 
 # use SQL_ASCII to be able to put any filename into
 #  the database even those created with unusual character sets
@@ -21,7 +22,7 @@ ENCODING="ENCODING 'SQL_ASCII'"
 #
 #ENCODING="ENCODING 'UTF8'"
      
-if createdb $* ${db_name}
+if createdb -u${db_user} $* ${db_name}
 then
    echo "Creation of ${db_name} database succeeded."
 else