Added version hold check in upgrade

This commit is contained in:
root 2024-07-15 18:54:39 +00:00
parent 08e80f973e
commit 7f10b96222

View File

@ -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//\"}"