]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix org#2628 About improving the update_bacula_tables script on up to date catalogs
authorEric Bollengier <eric@baculasystems.com>
Fri, 4 Nov 2022 09:17:21 +0000 (10:17 +0100)
committerEric Bollengier <eric@baculasystems.com>
Fri, 4 Nov 2022 09:17:45 +0000 (10:17 +0100)
bacula/src/cats/update_mysql_tables.in
bacula/src/cats/update_postgresql_tables.in

index 6c710a507c6c058f963ddab6180ffbdd9207b508..7f2ab86985d7d14a03e4c6eac6a0033d7090affd 100644 (file)
@@ -47,6 +47,11 @@ if [ "x$DBVERSION" = x ]; then
     exit 1
 fi
 
+if [ "$DBVERSION" -eq "$NEWVERSION" ] ; then
+   echo "Current ${db_name} database is up-to-date (version $NEWVERSION)."
+   exit 0
+fi
+
 if [ "$DBVERSION" -lt 1014 -o "$DBVERSION" -gt $OLDVERSION ] ; then
   if [ "$DBVERSION" -lt 12 -o "$DBVERSION" -gt 16 ] ; then
     echo " "
index d0b64bf97daa19c8bbd72e208c2804281ff08877..9b808305ab7ec0f2f5913900ba2e885072aad397 100644 (file)
@@ -48,6 +48,11 @@ if [ "x$DBVERSION" = x ]; then
     exit 1
 fi
 
+if [ "$DBVERSION" -eq "$NEWVERSION" ] ; then
+   echo "Current ${db_name} database is up-to-date (version $NEWVERSION)."
+   exit 0
+fi
+
 if [ "$DBVERSION" -lt 1014 -o "$DBVERSION" -gt $OLDVERSION ] ; then
   if [ "$DBVERSION" -lt 12 -o "$DBVERSION" -gt 16 ] ; then
     echo " "