1@ECHO off
2REM
3REM  Script to grant privileges to the bacula database
4REM
5USER=bacula
6
7"@SQL_BINDIR@\psql" -f "@bin_dir_cmd@\grant_postgresql_privileges.sql" -d bacula %*
8IF ERRORLEVEL 1 GOTO :ERROR
9ECHO Error creating privileges.
10EXIT /b 0
11GOTO :EOF
12
13:ERROR
14ECHO Drop of bacula database failed.
15EXIT /b 1
16