]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/updatedb/update_sqlite_tables_9_to_10.in
Try to fix bug #2349 multiple recycle messages
[bacula/bacula] / bacula / updatedb / update_sqlite_tables_9_to_10.in
index 852859554a48b8ad305854162a82a0d02aed9080..245f0777aac482f00ba3aabdaa6243d9e728672a 100644 (file)
@@ -1,5 +1,9 @@
 #!/bin/sh
 #
+# Author: Eric Bollengier, 2009
+# Copyright (C) 2000-2015 Kern Sibbald
+# License: BSD 2-Clause; see file LICENSE-FOSS
+#
 # shell script to update SQLite from version 1.38 to 2.0
 #
 echo " "
@@ -9,12 +13,12 @@ echo "Depending on the size of your database,"
 echo "this script may take several minutes to run."
 echo " "
 
-bindir=@SQL_BINDIR@
+bindir=@SQLITE_BINDIR@
+PATH="$bindir:$PATH"
 cd @working_dir@
-sqlite=@DB_TYPE@
 db_name=@db_name@
 
-${bindir}/${sqlite} $* ${db_name}.db <<END-OF-DATA
+sqlite3 $* ${db_name}.db <<END-OF-DATA
 BEGIN TRANSACTION;
 
 CREATE TEMPORARY TABLE Media_backup (