From 728b67508e8eddcf256d7dd7ce0457b04f2e1a0f Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sat, 24 Dec 2016 17:32:25 +0100 Subject: deploy to both lb's --- deploy.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index eec51c5..2753162 100755 --- a/deploy.sh +++ b/deploy.sh @@ -40,7 +40,9 @@ if ! (git diff --exit-code >/dev/null || git diff --cached --exit-code >/dev/nul fi fi -ssh -A voc@lb.dus.c3voc.de 'sudo sh' << EOT +for host in lb.dus.c3voc.de lb.alb.c3voc.de; do +echo "deploying to $host" +ssh -A voc@$host 'sudo sh' << EOT cd /srv/nginx/streaming-website git fetch origin git reset --hard HEAD @@ -50,3 +52,5 @@ chown -R voc:staff . chown -R downloader configs ./clear_cache EOT +echo "deploying to $host done" +done -- cgit v1.2.3