From 591120e2fe0afdea3e77385e06bed526d953d517 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Wed, 10 Aug 2022 11:52:34 -0600 Subject: [PATCH] better placements of trigger file --- functions/update_apps.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/update_apps.sh b/functions/update_apps.sh index 38462066..dec7a1fc 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -133,13 +133,13 @@ export -f update_apps update(){ -[[ ! -e trigger ]] && touch trigger count=0 while [[ $count -lt 3 ]] do update_avail=$(grep "^$app_name," temp.txt | awk -F ',' '{print $3}') if [[ $update_avail == "true" ]]; then if ! cli -c 'app chart_release upgrade release_name=''"'"$app_name"'"' &> /dev/null ; then + [[ ! -e trigger ]] && touch trigger sleep 6 ((count++)) continue @@ -158,8 +158,8 @@ export -f update after_update_actions(){ SECONDS=0 count=0 -# [[ ! -e trigger ]] && touch trigger if [[ $rollback == "true" || "$startstatus" == "STOPPED" ]]; then + [[ ! -e trigger ]] && touch trigger while true do (( count++ ))