diff options
author | MaZderMind | 2016-12-24 17:32:25 +0100 |
---|---|---|
committer | MaZderMind | 2016-12-24 17:32:25 +0100 |
commit | 728b67508e8eddcf256d7dd7ce0457b04f2e1a0f (patch) | |
tree | 6d1b3c93316893a99a4ddc18bf10d386a7ae2dd7 | |
parent | d1a68b5e0121091e4688983f8d66dcd1491da1ce (diff) |
deploy to both lb's
Diffstat (limited to '')
-rwxr-xr-x | deploy.sh | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |