summaryrefslogtreecommitdiff
path: root/test.sh
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2019-03-25 14:43:29 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2019-03-25 14:44:51 +0100
commit8917409c4fbd5ec311e52b349872233e23b70ab6 (patch)
treed568688e9f952c9551d370890026e4a4b41868c4 /test.sh
parent308225aff3ab06f979fa4eeb11cbeee21840b22b (diff)
downloaddeployment-8917409c4fbd5ec311e52b349872233e23b70ab6.tar.gz
deployment-8917409c4fbd5ec311e52b349872233e23b70ab6.tar.bz2
deployment-8917409c4fbd5ec311e52b349872233e23b70ab6.zip
More automation for demo/test deployment.
Diffstat (limited to 'test.sh')
-rwxr-xr-xtest.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/test.sh b/test.sh
new file mode 100755
index 0000000..9f10f6f
--- /dev/null
+++ b/test.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 "test" = $(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