]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/updatedb/update_bacula_tables_8_to_9
- Modify configure.in to add execute option to sqlite3 catalog
[bacula/bacula] / bacula / updatedb / update_bacula_tables_8_to_9
diff --git a/bacula/updatedb/update_bacula_tables_8_to_9 b/bacula/updatedb/update_bacula_tables_8_to_9
new file mode 100755 (executable)
index 0000000..b7f3ca0
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+#
+# This routine alters the appropriately configured
+#  Bacula tables for PostgreSQL, MySQL, or SQLite.
+#
+if test xsqlite = xpostgresql -o xsqlite3 = xpostgresql ; then
+  echo "Altering SQLite tables"
+  /etc/bacula/update_postgresql_tables $*
+fi
+if test xmysql = xpostgresql ; then
+  echo "Altering MySQL tables"
+  /etc/bacula/update_mysql_tables $*
+fi
+if test xpostgresql = xpostgresql ; then
+  echo "Altering PostgreSQL tables"
+  /etc/bacula/update_postgresql_tables $*
+fi