summaryrefslogtreecommitdiff
path: root/buildbot
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-01-03 10:15:19 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2018-01-03 10:15:19 +0100
commit61c2908f6dd94eeee5bdd92ba4fd09dd83142644 (patch)
treecf344c741875cf9bf79dd69e4c6552c7e9b45c9a /buildbot
parent98f16ca5a0b1480a3074bc46dbb76bee4d2a8881 (diff)
downloaddeployment-61c2908f6dd94eeee5bdd92ba4fd09dd83142644.tar.gz
deployment-61c2908f6dd94eeee5bdd92ba4fd09dd83142644.tar.bz2
deployment-61c2908f6dd94eeee5bdd92ba4fd09dd83142644.zip
using versioned "switcher script"
Diffstat (limited to 'buildbot')
-rwxr-xr-xbuildbot/switch.sh6
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}"