diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-01-03 10:15:19 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-01-03 10:15:19 +0100 |
commit | 61c2908f6dd94eeee5bdd92ba4fd09dd83142644 (patch) | |
tree | cf344c741875cf9bf79dd69e4c6552c7e9b45c9a /buildbot | |
parent | 98f16ca5a0b1480a3074bc46dbb76bee4d2a8881 (diff) | |
download | deployment-61c2908f6dd94eeee5bdd92ba4fd09dd83142644.tar.gz deployment-61c2908f6dd94eeee5bdd92ba4fd09dd83142644.tar.bz2 deployment-61c2908f6dd94eeee5bdd92ba4fd09dd83142644.zip |
using versioned "switcher script"
Diffstat (limited to 'buildbot')
-rwxr-xr-x | buildbot/switch.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/buildbot/switch.sh b/buildbot/switch.sh index a7bfaf0..018eb59 100755 --- a/buildbot/switch.sh +++ b/buildbot/switch.sh @@ -8,5 +8,9 @@ if test $active = "test-blue"; then nonactive="test-green" fi +cmd=$(printf "%s; %s" \ + "cd /home/test" \ + "./deployment/bin/taler-deployment-switch-${nonactive}.sh") + echo "Switching to ${nonactive}." -sudo -u test bash -c "cd /home/test; ./ln-${nonactive}.sh" +sudo -u test bash -c "${cmd}" |