From: Eric Bollengier Date: Tue, 3 May 2022 11:50:06 +0000 (+0200) Subject: Fix org#2662 About SQLite migration script issue X-Git-Tag: Release-13.0.0~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af81e5a8c7d51bcecaccee3632acf66db6faedc4;p=thirdparty%2Fbacula.git Fix org#2662 About SQLite migration script issue --- diff --git a/bacula/src/cats/update_sqlite3_tables.in b/bacula/src/cats/update_sqlite3_tables.in index 10847260f..4aaa5be16 100644 --- a/bacula/src/cats/update_sqlite3_tables.in +++ b/bacula/src/cats/update_sqlite3_tables.in @@ -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."