]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/update_bacula_tables.in
Fix open of SQLite3 db where user does not have write permission
[bacula/bacula] / bacula / src / cats / update_bacula_tables.in
index a45d69eaa28bd54e32fdefd2832080ddc021f32e..d640da17c31f67d0833e73c3873dbc834b1b051f 100755 (executable)
@@ -3,16 +3,15 @@
 # This routine alters the appropriately configured
 #  Bacula tables for PostgreSQL, MySQL, or SQLite.
 #
-if test xsqlite = x@DB_NAME@ ; then
+if test xsqlite = x@DB_NAME@ -o xsqlite3 = x@DB_NAME@ ; then
   echo "Altering SQLite tables"
-  . ./update_sqlite_tables
+  @scriptdir@/update_@DB_NAME@_tables $*
 fi
 if test xmysql = x@DB_NAME@ ; then
   echo "Altering MySQL tables"
-  . ./update_mysql_tables
+  @scriptdir@/update_mysql_tables $*
 fi
 if test xpostgresql = x@DB_NAME@ ; then
   echo "Altering PostgreSQL tables"
-  # we need the bacula datbase name in here... Should not be hardcoded
-  . ./update_postgresql_tables bacula
+  @scriptdir@/update_postgresql_tables $*
 fi