fix scripts/portal-down.sh

This commit is contained in:
Karol Wypchlo 2022-06-07 16:27:04 +02:00
parent 22c44ad199
commit 79bae26fcf
No known key found for this signature in database
GPG Key ID: B515DE9EEBE241E1
1 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ fi
countdown() { countdown() {
local secs=$1 local secs=$1
while [ $secs -gt 0 ]; do while [ "$secs" -gt 0 ]; do
echo -ne "Waiting $secs\033[0K\r" echo -ne "Waiting $secs\033[0K\r"
sleep 1 sleep 1
: $((secs--)) : $((secs--))
@ -28,10 +28,10 @@ countdown() {
} }
# delay disabling the portal # delay disabling the portal
countdown $delay countdown "$delay"
# stop health-check so the server is taken our of load balancer # stop health-check so the server is taken our of load balancer
docker exec health-check cli disable $reason docker exec health-check cli disable "$reason"
# then wait 5 minutes for the load balancer to propagate the dns records # then wait 5 minutes for the load balancer to propagate the dns records
countdown $timeout countdown "$timeout"