#!/bin/sh # # shell script to grant privileges to the bacula database # # Copyright (C) 2000-2020 Kern Sibbald # License: BSD 2-Clause; see file LICENSE-FOSS # 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 $bindir/psql -f - -d ${db_name} $* <