diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-06-08 14:05:06 +0200 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-06-08 14:05:36 +0200 |
commit | 7022c86a13dc55b9b1fa6dd1419d074a29be279c (patch) | |
tree | b12756928d3e9061d3fe5cff430c6bd53a501fef /buildbot | |
parent | 48b8a881b97487aa32f08beba76740fc9d348d21 (diff) | |
download | deployment-7022c86a13dc55b9b1fa6dd1419d074a29be279c.tar.gz deployment-7022c86a13dc55b9b1fa6dd1419d074a29be279c.tar.bz2 deployment-7022c86a13dc55b9b1fa6dd1419d074a29be279c.zip |
new BB scripts + #5340.
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' |