blob: 9e38c50803fa4409bd26109adbeee3d8464c102f (
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
if sudo -u $nonactive \
bash -c 'source $HOME/activate; taler-deployment-build'; then
echo "Switching to ${nonactive}."
sudo -u test bash -c "cd /home/test; ./ln-${nonactive}.sh"
fi
|