aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaZderMind2016-12-24 17:32:25 +0100
committerMaZderMind2016-12-24 17:32:25 +0100
commit728b67508e8eddcf256d7dd7ce0457b04f2e1a0f (patch)
tree6d1b3c93316893a99a4ddc18bf10d386a7ae2dd7
parentd1a68b5e0121091e4688983f8d66dcd1491da1ce (diff)
deploy to both lb's
Diffstat (limited to '')
-rwxr-xr-xdeploy.sh6
1 files changed, 5 insertions, 1 deletions
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