summaryrefslogtreecommitdiff
path: root/bin/taler-deployment-switch-green
blob: 4429ea0034de0cb2b64dd371b3361afbd644db56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

if ! test $(whoami) = test; then
  echo Please run as the 'test' user. Exiting.
  exit 1
fi

rm /home/test/sockets || true
rm /home/test/landing || true
ln -s /home/test-green/sockets
ln -s /home/test-green/landing
echo "test-green" > /home/test/active