fix scripts/portal-down.sh
This commit is contained in:
parent
22c44ad199
commit
79bae26fcf
|
@ -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"
|
||||||
|
|
Reference in New Issue