while sleep to 5

This commit is contained in:
Heavybullets8 2022-08-13 10:52:31 -06:00
parent be064a818b
commit 0faeefa71d

View File

@ -29,7 +29,7 @@ do
((count++))
done
if [[ "$proc_count" -ge "$update_limit" ]]; then
sleep 3
sleep 5
elif [[ $it -lt ${#array[@]} ]]; then
# loop=0
# until [[ $loop -ge 2 || $it -ge ${#array[@]} ]];
@ -40,7 +40,7 @@ do
# ((loop++))
# done
elif [[ $proc_count != 0 ]]; then # Wait for all processes to finish
sleep 3
sleep 5
else # All processes must be completed, break out of loop
break
fi
@ -79,7 +79,6 @@ if grep -qs "^$app_name," failed.txt ; then
fi
[[ ! -e external_services ]] && touch external_services
if ! grep -qs "^$app_name," external_services ; then
if ! grep qs "/external-service" /mnt/"$pool"/ix-applications/releases/"$app_name"/charts/"$(find /mnt/"$pool"/ix-applications/releases/"$app_name"/charts/ -maxdepth 1 -type d -printf '%P\n' | sort -r | head -n 1)"/Chart.yaml ; then
echo "$app_name,false" >> external_services
@ -88,9 +87,6 @@ if ! grep -qs "^$app_name," external_services ; then
fi
fi
echo_array+=("\n$app_name")
if [[ $stop_before_update == "true" && "$startstatus" != "STOPPED" ]]; then # Check to see if user is using -S or not
[[ "$verbose" == "true" ]] && echo_array+=("Stopping prior to update..")