summaryrefslogtreecommitdiff
path: root/buildbot
diff options
context:
space:
mode:
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}"