summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2017-07-14 16:48:33 +0200
committerMarcello Stanisci <marcello.stanisci@inria.fr>2017-07-14 16:48:33 +0200
commit10be4bfcb08c881d63af611491f35e9a5378bb77 (patch)
tree463770049719676249e8c1c6bac8fcd543421f01
parent27c9d6b656bf6d2430e78fa98b6645cd41b752a9 (diff)
downloaddeployment-10be4bfcb08c881d63af611491f35e9a5378bb77.tar.gz
deployment-10be4bfcb08c881d63af611491f35e9a5378bb77.tar.bz2
deployment-10be4bfcb08c881d63af611491f35e9a5378bb77.zip
missing check
-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'