From 7f10b96222d1bca70d332974caa8d49e3bbc528b Mon Sep 17 00:00:00 2001 From: root Date: Mon, 15 Jul 2024 18:54:39 +0000 Subject: [PATCH] Added version hold check in upgrade --- lib/functions.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/functions.sh b/lib/functions.sh index 6654b33..7a09d8b 100644 --- a/lib/functions.sh +++ b/lib/functions.sh @@ -111,6 +111,7 @@ upgrade_federated() { echo -ne "\n** Checking $APP.." if [ -f "/federated/apps/$APP/.env" ]; then + [[ $(grep IMAGE_VERSION_HOLD /federated/apps/$APP/.env) ]] && echo -ne "\n version hold found, skipping." && continue APP_VERSION_RAW=`grep IMAGE_VERSION /federated/apps/$APP/.env | awk -F= '{ print $2 }'` APP_VERSION="${APP_VERSION_RAW//\"}"