better placements of trigger file
This commit is contained in:
parent
96b462fd5d
commit
591120e2fe
@ -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++ ))
|
||||
|
Loading…
Reference in New Issue
Block a user