]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/update_sqlite_tables.in
ebl Fix #955 bug which was introduce with regexwhere relocation.
[bacula/bacula] / bacula / src / cats / update_sqlite_tables.in
index efb79fb88ab7cb9cc3a39f1f64df78b3ea41dac9..852859554a48b8ad305854162a82a0d02aed9080 100755 (executable)
@@ -1,19 +1,20 @@
 #!/bin/sh
 #
-# shell script to update SQLite from version 1.38 to 1.39
+# shell script to update SQLite from version 1.38 to 2.0
 #
 echo " "
 echo "This script will update a Bacula SQLite database from version 9 to 10"
-echo " which is needed to convert from Bacula version 1.38.x to 1.39.x or higher"
+echo " which is needed to convert from Bacula version 1.38.x to 2.0.x or higher"
 echo "Depending on the size of your database,"
 echo "this script may take several minutes to run."
 echo " "
 
 bindir=@SQL_BINDIR@
 cd @working_dir@
-sqlite=@DB_NAME@
+sqlite=@DB_TYPE@
+db_name=@db_name@
 
-${bindir}/${sqlite} $* bacula.db <<END-OF-DATA
+${bindir}/${sqlite} $* ${db_name}.db <<END-OF-DATA
 BEGIN TRANSACTION;
 
 CREATE TEMPORARY TABLE Media_backup (