blob: ae82501ebc02079f8b24f0cc8fba67f3c3326179 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/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
PAUSE_LOCKFILE=/tmp/buildbot_pause.lock
if [ -f $PAUSE_LOCKFILE ]; then
echo "The Buildbot is paused, remove ${PAUSE_LOCKFILE} to resume."
# exit code 2 not really documented, just something
# different from the classical 1 (it's not a error after all).
exit 2
fi
sudo -u $nonactive bash -c 'source $HOME/activate; taler-deployment-build'
|