#!/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 'test' user. if ! test "test" = $(whoami); then echo This script can only be run by the 'test' user, exiting.. exit 1 fi echo Creating the 'shared-data' directory. mkdir $HOME/shared-data