From 8917409c4fbd5ec311e52b349872233e23b70ab6 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Mon, 25 Mar 2019 14:43:29 +0100 Subject: More automation for demo/test deployment. --- demo.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 demo.sh (limited to 'demo.sh') diff --git a/demo.sh b/demo.sh new file mode 100755 index 0000000..3ce92e3 --- /dev/null +++ b/demo.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# Every "blue/green" setup relies on a common user that keeps +# all the shared data (keys, for example). In our setup, test-* +# and demo-* rely on the users 'test' and 'demo'. This script +# automates the configuration of the 'demo' user. + +if ! test "demo" = $(whoami); then + echo This script can only be run by the 'demo' user, exiting.. + exit 1 +fi + +echo Creating the 'shared-data' directory. +mkdir $HOME/shared-data -- cgit v1.2.3