the other databases. The grant script will make sure the db_user will have
the proper access rights to the database tables and sequences.
#
# 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};
# 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