]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/win32/cats/make_postgresql_tables.cmd
Restore win32 dir from Branch-5.2 and update it
[bacula/bacula] / bacula / src / win32 / cats / make_postgresql_tables.cmd
diff --git a/bacula/src/win32/cats/make_postgresql_tables.cmd b/bacula/src/win32/cats/make_postgresql_tables.cmd
new file mode 100644 (file)
index 0000000..0dae458
--- /dev/null
@@ -0,0 +1,14 @@
+@ECHO off\r
+REM\r
+REM  Script to create Bacula PostgreSQL tables\r
+REM\r
+\r
+"@SQL_BINDIR@\psql" -f "@bin_dir_cmd@\make_postgresql_tables.sql" -d bacula %*\r
+IF ERRORLEVEL 1 GOTO :ERROR\r
+ECHO Creation of Bacula PostgreSQL tables succeeded.\r
+EXIT /b 0\r
+GOTO :EOF\r
+\r
+:ERROR\r
+ECHO Creation of Bacula PostgreSQL tables failed.\r
+EXIT /b 1\r