blob: 19a18d135215c02aea97bcec2505ad838eb978fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/bash
DEPLOYMENT="test"
if test "stable" = ${BRANCH}; then
DEPLOYMENT="demo"
active=$(sudo -u ${DEPLOYMENT} cat /home/${DEPLOYMENT}/active)
nonactive="${DEPLOYMENT}-blue"
echo "Active party: ${active}"
if test $active = "${DEPLOYMENT}-blue"; then
nonactive="${DEPLOYMENT}-green"
fi
sudo -u $nonactive bash -c 'cd $HOME; . activate; taler-deployment-restart'
|