blob: 018eb5938d05f7a519488c72595459093f8ad295 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/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
cmd=$(printf "%s; %s" \
"cd /home/test" \
"./deployment/bin/taler-deployment-switch-${nonactive}.sh")
echo "Switching to ${nonactive}."
sudo -u test bash -c "${cmd}"
|