]> 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 0195bb00ba424b44d2af05a7e4cb256e1608717d..1759dd7a631f804e6bbaef0aa3c90091b1f3a767 100755 (executable)
@@ -1,17 +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
   if test xmysql = x@DB_NAME@ ; then 
     echo "Making MySQL tables"
-    . ./make_mysql_tables
+    @scriptdir@/make_mysql_tables $*
   else
     echo "Making PostgreSQL tables"
-    . ./make_postgresql_tables
+    # hard coded database name
+    @scriptdir@/make_postgresql_tables bacula
   fi
 fi