]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/make_bacula_tables.in
Eliminate bsd_queue conflict with winnt.h
[bacula/bacula] / bacula / src / cats / make_bacula_tables.in
index 158ae3b8c69685ef329ae4363508792b7c16a48a..1759dd7a631f804e6bbaef0aa3c90091b1f3a767 100755 (executable)
@@ -1,12 +1,18 @@
 #!/bin/sh
 #
 # This routine makes the appropriately configured
-#  Bacula tables for either MySQL or SQLite
+#  Bacula tables for PostgreSQL, MySQL, or SQLite.
 #
 if test xsqlite = x@DB_NAME@ ; then
   echo "Making SQLite tables"
-  . ./make_sqlite_tables
+  @scriptdir@/make_sqlite_tables
 else
-  echo "Making MySQL tables"
-  . ./make_mysql_tables
+  if test xmysql = x@DB_NAME@ ; then 
+    echo "Making MySQL tables"
+    @scriptdir@/make_mysql_tables $*
+  else
+    echo "Making PostgreSQL tables"
+    # hard coded database name
+    @scriptdir@/make_postgresql_tables bacula
+  fi
 fi