]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix org#2662 About SQLite migration script issue
authorEric Bollengier <eric@baculasystems.com>
Tue, 3 May 2022 11:50:06 +0000 (13:50 +0200)
committerEric Bollengier <eric@baculasystems.com>
Tue, 3 May 2022 11:50:06 +0000 (13:50 +0200)
bacula/src/cats/update_sqlite3_tables.in

index 10847260feab0557ccc5620068ab933881e79513..4aaa5be16722fb5b5880b5faa1691bb15c2748d9 100644 (file)
@@ -23,7 +23,7 @@ SELECT VersionId FROM Version LIMIT 1;
 END
 `
 if [ "$DBVERSION" -ne $OLDVERSION ] ; then
-  if [ "$DBVERSION" -lt 12 -o "$DBVERSION" -gt 14 ] ; then
+  if [ "$DBVERSION" -lt 12 -o "$DBVERSION" -gt $NEWVERSION ] ; then
     echo " "
     echo "The existing database is version $DBVERSION !!"
     echo "This script can only update an existing version 12, 13, 14 or 1014-$OLDVERSION database to version $NEWVERSION."