summaryrefslogtreecommitdiff
path: root/bin/taler-deployment-switch-demo-blue
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-11-28 16:57:45 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2018-11-28 16:57:45 +0100
commit546704cf4d80dae6b0c611b26333e65ed3d96a32 (patch)
treea5b8cb219cffb342f093bcec5082c35232bb260a /bin/taler-deployment-switch-demo-blue
parentc20459ead07d6c2b5760821171debb1d5e03077a (diff)
downloaddeployment-546704cf4d80dae6b0c611b26333e65ed3d96a32.tar.gz
deployment-546704cf4d80dae6b0c611b26333e65ed3d96a32.tar.bz2
deployment-546704cf4d80dae6b0c611b26333e65ed3d96a32.zip
Provide blue/green switcher scripts for 'demo' too.
Diffstat (limited to 'bin/taler-deployment-switch-demo-blue')
-rwxr-xr-xbin/taler-deployment-switch-demo-blue14
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/taler-deployment-switch-demo-blue b/bin/taler-deployment-switch-demo-blue
new file mode 100755
index 0000000..e5f4eb0
--- /dev/null
+++ b/bin/taler-deployment-switch-demo-blue
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+if ! test $(whoami) = demo; then
+ echo Please run as the 'demo' user. Exiting.
+ exit 1
+fi
+
+rm /home/demo/sockets || true
+rm /home/demo/landing || true
+rm /home/demo/auditor || true
+ln -s /home/demo-blue/sockets /home/demo/sockets
+ln -s /home/demo-blue/landing /home/demo/landing
+ln -s /home/demo-blue/auditor /home/demo/auditor
+echo "demo-blue" > /home/demo/active