diff options
-rwxr-xr-x | bin/taler-deployment-start | 10 | ||||
-rwxr-xr-x | buildbot/config.sh | 11 | ||||
-rwxr-xr-x | buildbot/keys.sh | 11 | ||||
-rwxr-xr-x | buildbot/sign.sh | 11 |
4 files changed, 33 insertions, 10 deletions
diff --git a/bin/taler-deployment-start b/bin/taler-deployment-start index 5094149..191fb03 100755 --- a/bin/taler-deployment-start +++ b/bin/taler-deployment-start @@ -9,16 +9,6 @@ ulimit -c $((100 * 1024)) &>/dev/null || true cd $HOME -if [[ ! -e $HOME/.config/taler.conf ]]; then - taler-deployment-config-generate -fi - -taler-deployment-config-sign - -taler-deployment-keyup - -taler-deployment-auditor-sign - taler-deployment-arm -s if [ "${TALER_CONFIG_STANDALONE:-0}" = 1 ]; then 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' |