This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
2020-09-04 12:55:30 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e # exit on first error
|
|
|
|
|
|
|
|
countdown() {
|
|
|
|
local secs=$1
|
|
|
|
while [ $secs -gt 0 ]; do
|
|
|
|
echo -ne "Waiting $secs\033[0K\r"
|
|
|
|
sleep 1
|
|
|
|
: $((secs--))
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
# first stop healh-check so the server is taken our of load balancer
|
|
|
|
docker-compose stop health-check
|
|
|
|
|
|
|
|
# then wait 5 minutes for the load balancer to propagate the dns records
|
|
|
|
countdown 300
|
|
|
|
|
|
|
|
# now stop sia process
|
2020-09-04 12:58:02 +00:00
|
|
|
docker-compose stop sia
|