]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/cats/grant_postgresql_privileges.cmd
More line-end cleanup
[bacula/bacula] / bacula / src / win32 / cats / grant_postgresql_privileges.cmd
1 rem \r
2 rem  shell script to grant privileges to the bacula database\r
3 rem \r
4 USER=bacula\r
5 bindir=@SQL_BINDIR@\r
6 \r
7 $bindir/psql -f grant_postgresql_privileges.sql -d bacula $*\r
8 if ERRORLEVEL 1 GOTO :ERROR\r
9 echo "Error creating privileges."\r
10 EXIT /b 0\r
11 GOTO :EOF\r
12 \r
13 :ERROR\r
14 echo "Drop of bacula database failed."\r
15 EXIT /b 1\r