]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/win32/cats/grant_postgresql_privileges.cmd
kes Add context menu for floating a window.
[bacula/bacula] / bacula / src / win32 / cats / grant_postgresql_privileges.cmd
index cdaa4c78b10789d2513d6b8964b259626bd4161a..69e8076833319e9cb471ae809313b69ac5f0e5b2 100644 (file)
@@ -1,15 +1,15 @@
-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