diff options
Diffstat (limited to 'buildbot/config.sh')
-rwxr-xr-x | buildbot/config.sh | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/buildbot/config.sh b/buildbot/config.sh index a3f9434..dd22421 100755 --- a/buildbot/config.sh +++ b/buildbot/config.sh @@ -1,11 +1,16 @@ #!/bin/bash -active=$(sudo -u test cat /home/test/active) -nonactive="test-blue" +DEPLOYMENT="test" + +if test "stable" = ${BRANCH}; then + DEPLOYMENT="demo" + +active=$(sudo -u ${DEPLOYMENT} cat /home/${DEPLOYMENT}/active) +nonactive="${DEPLOYMENT}-blue" echo "Active party: ${active}" -if test $active = "test-blue"; then - nonactive="test-green" +if test $active = "${DEPLOYMENT}-blue"; then + nonactive="${DEPLOYMENT}-green" fi sudo -u $nonactive bash -c 'source $HOME/activate; taler-deployment-config-generate' |