]> git.sur5r.net Git - bacula/bacula/commitdiff
Do all Ingres operations as the user invoking the script just as for all
authorMarco van Wieringen <mvw@planets.elm.net>
Sat, 3 Apr 2010 19:16:50 +0000 (21:16 +0200)
committerMarco van Wieringen <mvw@planets.elm.net>
Fri, 9 Apr 2010 11:25:47 +0000 (13:25 +0200)
the other databases. The grant script will make sure the db_user will have
the proper access rights to the database tables and sequences.

bacula/src/cats/grant_ingres_privileges.in
bacula/src/cats/make_ingres_tables.in

index d937334542ead645a46c59ce4508ce780214745c..1aab5985d25618beb001ddda949c3f3ad28dc98e 100755 (executable)
@@ -2,11 +2,10 @@
 #
 # shell script TO GRANT privileges to the bacula database
 #
-db_user=${db_user:-@db_user@}
 bindir=@SQL_BINDIR@
 db_name=${db_name:-@db_name@}
 
-if sql -u${db_user} ${db_name} $* <<END-OF-DATA
+if sql ${db_name} $* <<END-OF-DATA
 
 -- for tables
 GRANT ALL ON TABLE filename TO ${db_user};
index 62908f34c471edb98a83244b5952ebf30865e02c..caeeaffddee883137ae5d5d29f44ed07e574e032 100755 (executable)
@@ -3,6 +3,7 @@
 # shell script to create Bacula PostgreSQL tables
 #
 bindir=@SQL_BINDIR@
+PATH="$bindir:$PATH"
 db_name=${db_name:-@db_name@}
 
 sql $* ${db_name} <<END-OF-DATA