summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuildbot/restart.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/buildbot/restart.sh b/buildbot/restart.sh
index 425300b..dad6366 100755
--- a/buildbot/restart.sh
+++ b/buildbot/restart.sh
@@ -4,4 +4,8 @@ active=$(sudo -u test cat /home/test/active)
nonactive="test-blue"
echo "Active party: ${active}"
+if test $active = "test-blue"; then
+ nonactive="test-green"
+fi
+
sudo -u $nonactive bash -c 'cd $HOME; . activate; taler-deployment-restart'