]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/make_bacula_tables.in
Change old get_Jobxxx to getJobxxx
[bacula/bacula] / bacula / src / cats / make_bacula_tables.in
index 726c8ff58a972e9e68d81d8153b5c9944bc731fb..c8469f12bf04e11fb7f36f201074d4c2e36e47c9 100755 (executable)
@@ -1,10 +1,17 @@
 #!/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
-  source ./make_sqlite_tables
+if test xsqlite3 = x@DB_TYPE@ ; then
+  echo "Making SQLite tables"
+  @scriptdir@/make_@DB_TYPE@_tables $*
 else
-  source ./make_mysql_tables
+  if test xmysql = x@DB_TYPE@ ; then 
+    echo "Making MySQL tables"
+    @scriptdir@/make_mysql_tables $*
+  else
+    echo "Making PostgreSQL tables"
+    @scriptdir@/make_postgresql_tables $*
+  fi
 fi