diff options
Diffstat (limited to 'buildbot')
-rwxr-xr-x | buildbot/config.sh | 11 | ||||
-rwxr-xr-x | buildbot/keys.sh | 11 | ||||
-rwxr-xr-x | buildbot/sign.sh | 11 |
3 files changed, 33 insertions, 0 deletions
diff --git a/buildbot/config.sh b/buildbot/config.sh new file mode 100755 index 0000000..a3f9434 --- /dev/null +++ b/buildbot/config.sh @@ -0,0 +1,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 'source $HOME/activate; taler-deployment-config-generate' diff --git a/buildbot/keys.sh b/buildbot/keys.sh new file mode 100755 index 0000000..45f4f86 --- /dev/null +++ b/buildbot/keys.sh @@ -0,0 +1,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 'source $HOME/activate; taler-deployment-keyup' diff --git a/buildbot/sign.sh b/buildbot/sign.sh new file mode 100755 index 0000000..68c4b51 --- /dev/null +++ b/buildbot/sign.sh @@ -0,0 +1,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 'source $HOME/activate; taler-deployment-config-sign' |