]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/make_bacula_tables.in
ebl Implement project 2, about new restore menu
[bacula/bacula] / bacula / src / cats / make_bacula_tables.in
index b4f5d19ad6abef1d9edee83e41f5d5acc43651a1..0c6dd12eb6663df175f0fdacf809c59953c128e5 100755 (executable)
@@ -1,12 +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
+if test xsqlite = x@DB_TYPE@ -o xsqlite3 = x@DB_TYPE@ ; then
   echo "Making SQLite tables"
-  source ./make_sqlite_tables
+  @scriptdir@/make_@DB_TYPE@_tables $*
 else
-  echo "Making MySQL tables"
-  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