better placements of trigger file

This commit is contained in:
Heavybullets8 2022-08-10 11:52:34 -06:00
parent 96b462fd5d
commit 591120e2fe

View File

@ -133,13 +133,13 @@ export -f update_apps
update(){ update(){
[[ ! -e trigger ]] && touch trigger
count=0 count=0
while [[ $count -lt 3 ]] while [[ $count -lt 3 ]]
do do
update_avail=$(grep "^$app_name," temp.txt | awk -F ',' '{print $3}') update_avail=$(grep "^$app_name," temp.txt | awk -F ',' '{print $3}')
if [[ $update_avail == "true" ]]; then if [[ $update_avail == "true" ]]; then
if ! cli -c 'app chart_release upgrade release_name=''"'"$app_name"'"' &> /dev/null ; then if ! cli -c 'app chart_release upgrade release_name=''"'"$app_name"'"' &> /dev/null ; then
[[ ! -e trigger ]] && touch trigger
sleep 6 sleep 6
((count++)) ((count++))
continue continue
@ -158,8 +158,8 @@ export -f update
after_update_actions(){ after_update_actions(){
SECONDS=0 SECONDS=0
count=0 count=0
# [[ ! -e trigger ]] && touch trigger
if [[ $rollback == "true" || "$startstatus" == "STOPPED" ]]; then if [[ $rollback == "true" || "$startstatus" == "STOPPED" ]]; then
[[ ! -e trigger ]] && touch trigger
while true while true
do do
(( count++ )) (( count++ ))