blob: 3ce92e3ba5d16c6734ff5f32e29b174a703851df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
|