From 10be4bfcb08c881d63af611491f35e9a5378bb77 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Fri, 14 Jul 2017 16:48:33 +0200 Subject: missing check --- buildbot/restart.sh | 4 ++++ 1 file changed, 4 insertions(+) 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' -- cgit v1.2.3