diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2019-03-25 14:43:29 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2019-03-25 14:44:51 +0100 |
commit | 8917409c4fbd5ec311e52b349872233e23b70ab6 (patch) | |
tree | d568688e9f952c9551d370890026e4a4b41868c4 /test.sh | |
parent | 308225aff3ab06f979fa4eeb11cbeee21840b22b (diff) | |
download | deployment-8917409c4fbd5ec311e52b349872233e23b70ab6.tar.gz deployment-8917409c4fbd5ec311e52b349872233e23b70ab6.tar.bz2 deployment-8917409c4fbd5ec311e52b349872233e23b70ab6.zip |
More automation for demo/test deployment.
Diffstat (limited to 'test.sh')
-rwxr-xr-x | test.sh | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 |