summaryrefslogtreecommitdiff
path: root/buildbot/config.sh
diff options
context:
space:
mode:
Diffstat (limited to 'buildbot/config.sh')
-rwxr-xr-xbuildbot/config.sh13
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'