commit 61c2908f6dd94eeee5bdd92ba4fd09dd83142644 parent 98f16ca5a0b1480a3074bc46dbb76bee4d2a8881 Author: Marcello Stanisci <stanisci.m@gmail.com> Date: Wed, 3 Jan 2018 10:15:19 +0100 using versioned "switcher script" Diffstat:
| M | buildbot/switch.sh | | | 6 | +++++- |
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git 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}"