From: Kern Sibbald Date: Sat, 10 Apr 2010 10:18:43 +0000 (+0200) Subject: Revert "Creating a database as an other user and giving grants doesn't seem to work... X-Git-Tag: Release-5.0.2~47 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9a6cab90048d12923ea719b0260e46e03b8c6b36;p=bacula%2Fbacula Revert "Creating a database as an other user and giving grants doesn't seem to work for Ingres." This reverts commit a87309a9aa0729805910bbfbab8f8a57d7f0629c. --- diff --git a/bacula/src/cats/create_ingres_database.in b/bacula/src/cats/create_ingres_database.in index 9422010492..1e4973de70 100755 --- a/bacula/src/cats/create_ingres_database.in +++ b/bacula/src/cats/create_ingres_database.in @@ -5,8 +5,7 @@ bindir=@SQL_BINDIR@ PATH="$bindir:$PATH" -db_name=${db_name:-@db_name@} -db_user=${db_user:-@db_user@} +db_name=@db_name@ # use SQL_ASCII to be able to put any filename into # the database even those created with unusual character sets @@ -22,7 +21,7 @@ ENCODING="ENCODING 'SQL_ASCII'" # #ENCODING="ENCODING 'UTF8'" -if createdb -u${db_user} $* ${db_name} +if createdb $* ${db_name} then echo "Creation of ${db_name} database succeeded." else diff --git a/bacula/src/cats/drop_ingres_database.in b/bacula/src/cats/drop_ingres_database.in index 0a4c4f7a9a..23c75fe287 100755 --- a/bacula/src/cats/drop_ingres_database.in +++ b/bacula/src/cats/drop_ingres_database.in @@ -4,11 +4,9 @@ # bindir=@SQL_BINDIR@ -PATH="$bindir:$PATH" -db_name=${db_name:-@db_name@} -db_user=${db_user:-@db_user@} +db_name=@db_name@ -if destroydb -u${db_user} ${db_name} +if destroydb ${db_name} then echo "Drop of ${db_name} database succeeded." else diff --git a/bacula/src/cats/drop_ingres_tables.in b/bacula/src/cats/drop_ingres_tables.in index 08996aa3e7..ac6b6eadca 100755 --- a/bacula/src/cats/drop_ingres_tables.in +++ b/bacula/src/cats/drop_ingres_tables.in @@ -3,9 +3,7 @@ # shell script to delete Bacula tables for PostgreSQL bindir=@SQL_BINDIR@ -PATH="$bindir:$PATH" -db_name=${db_name:-@db_name@} -db_user=${db_user:-@db_user@} +db_name=@db_name@ sql -u${db_user} ${db_name} $* <