X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fcats%2Fgrant_postgresql_privileges.in;h=f39725ddc0959da160aacff1c43f973eca9b106b;hb=57c3794986e8cd011788c1ea3bded6bf3bcfa431;hp=02c18fb8e5cf518ca186d89e8c9d1f5226bb987e;hpb=cfb521c58b4a543c6d973a7e181604c8b6285040;p=bacula%2Fbacula diff --git a/bacula/src/cats/grant_postgresql_privileges.in b/bacula/src/cats/grant_postgresql_privileges.in index 02c18fb8e5..f39725ddc0 100644 --- a/bacula/src/cats/grant_postgresql_privileges.in +++ b/bacula/src/cats/grant_postgresql_privileges.in @@ -2,45 +2,68 @@ # # shell script to grant privileges to the bacula database # -USER=bacula -bindir=@SQL_BINDIR@ +db_user=${db_user:-@db_user@} +bindir=@POSTGRESQL_BINDIR@ +db_name=${db_name:-@db_name@} +db_password=@db_password@ +if [ "$db_password" != "" ]; then + pass="password '$db_password'" +fi -if $bindir/psql $* bacula -f - <