fix branding, route cron mail, add msca shim
[awsible] / roles / msca / files / msca.sh
1 # configure environment for MSCA AWS things
2
3 # as of pip2.7, all pip installed binaries are here
4 # pathmunge /usr/local/bin
5
6 ## Add user-data to environment. Because we use asgard this should be safe...
7 ## came from http://stackoverflow.com/questions/10520605/bashs-source-command-not-working-with-a-file-curld-from-internet
8 ## NOTE, if you create your own init script you must copy the below to /etc/default/myScriptName
9 source /dev/stdin <<< "$(curl -s --fail http://169.254.169.254/latest/user-data)"
10
11 # set 'screen' title
12 echo -n -e "\033k$INSTANCE_ID-$CLOUD_CLUSTER\033\\"