]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/update_bacula_tables.in
ebl Implement project 2, about new restore menu
[bacula/bacula] / bacula / src / cats / update_bacula_tables.in
index a1b1984cac5209ac503872ca74302161733fbf10..1e7edbadd30d3c06481ef26980e0b43b94cb8a32 100755 (executable)
@@ -1,13 +1,17 @@
 #!/bin/sh
 #
 # This routine alters 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 "Altering SQLite tables"
-  . ./update_sqlite_tables
+  @scriptdir@/update_@DB_TYPE@_tables $*
 fi
-if test xmysql = x@DB_NAME@ ; then
+if test xmysql = x@DB_TYPE@ ; then
   echo "Altering MySQL tables"
-  . ./update_mysql_tables
+  @scriptdir@/update_mysql_tables $*
+fi
+if test xpostgresql = x@DB_TYPE@ ; then
+  echo "Altering PostgreSQL tables"
+  @scriptdir@/update_postgresql_tables $*
 fi