]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/cats/create_postgresql_database.cmd
Fix remaining issues with Microsoft Visual Studio build.
[bacula/bacula] / bacula / src / win32 / cats / create_postgresql_database.cmd
1 rem \r
2 rem  shell script to create Bacula database(s)\r
3 rem \r
4 \r
5 bindir=@SQL_BINDIR@\r
6 \r
7 rem use SQL_ASCII to be able to put any filename into\r
8 rem  the database even those created with unusual character sets\r
9 ENCODING="ENCODING 'SQL_ASCII'"\r
10 rem use UTF8 if you are using standard Unix/Linux LANG specifications\r
11 rem  that use UTF8 -- this is normally the default and *should* be\r
12 rem  your standard.  Bacula consoles work correctly *only* with UTF8.\r
13 rem ENCODING="ENCODING 'UTF8'"\r
14      \r
15 $bindir/psql -f create_postgresql_database.sql -d template1 $*\r
16 if ERRORLEVEL 1 GOTO :ERROR\r
17 echo "Creation of bacula database succeeded."\r
18 EXIT /b 0\r
19 GOTO :EOF\r
20 \r
21 :ERROR\r
22 echo "Creation of bacula database failed."\r
23 EXIT /b 1\r