summaryrefslogtreecommitdiff
path: root/buildbot/restart.sh
blob: dad6366f088ab246f626a70283f58194fd94c70c (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

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'