#!/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@ PATH="$PATH:$bindir" db_name=${db_name:-@db_name@} db_password=@db_password@ if [ "$db_password" != "" ]; then pass="password '$db_password'" fi psql -f - -d ${db_name} $* <