-rem \r
-rem shell script to grant privileges to the bacula database\r
-rem \r
+@ECHO off\r
+REM\r
+REM Script to grant privileges to the bacula database\r
+REM\r
USER=bacula\r
-bindir=@SQL_BINDIR@\r
\r
-$bindir/psql -f grant_postgresql_privileges.sql -d bacula $*\r
-if ERRORLEVEL 1 GOTO :ERROR\r
-echo "Error creating privileges."\r
+"@SQL_BINDIR@\psql" -f "@bin_dir_cmd@\grant_postgresql_privileges.sql" -d bacula %*\r
+IF ERRORLEVEL 1 GOTO :ERROR\r
+ECHO Error creating privileges.\r
EXIT /b 0\r
GOTO :EOF\r
\r
:ERROR\r
-echo "Drop of bacula database failed."\r
+ECHO Drop of bacula database failed.\r
EXIT /b 1\r