From: Marco van Wieringen Date: Sat, 3 Apr 2010 20:09:52 +0000 (+0200) Subject: Create user in the right database for Ingres. X-Git-Tag: Release-5.2.1~1538 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c935de1fc6cdf80b900f1d3f56c8de2f0bec8ab9;p=bacula%2Fbacula Create user in the right database for Ingres. --- diff --git a/bacula/src/cats/create_ingres_database.in b/bacula/src/cats/create_ingres_database.in index a287352f86..1e4973de70 100755 --- a/bacula/src/cats/create_ingres_database.in +++ b/bacula/src/cats/create_ingres_database.in @@ -4,6 +4,7 @@ # bindir=@SQL_BINDIR@ +PATH="$bindir:$PATH" db_name=@db_name@ # use SQL_ASCII to be able to put any filename into @@ -26,4 +27,5 @@ then else echo "Creation of ${db_name} database failed." fi + exit 0 diff --git a/bacula/src/cats/grant_ingres_privileges.in b/bacula/src/cats/grant_ingres_privileges.in index 1aab5985d2..82bab040d4 100755 --- a/bacula/src/cats/grant_ingres_privileges.in +++ b/bacula/src/cats/grant_ingres_privileges.in @@ -4,6 +4,12 @@ # bindir=@SQL_BINDIR@ db_name=${db_name:-@db_name@} +db_user=${db_user:-@db_user@} + +sql iidbdb $* <