atst/script/write_dotenv
dandds d5706454e3 Fix newline issues in script/write_dotenv.
In `sh` on Alpine Linux in our Docker images, the newline characters in
the script were being interpreted as literals. This substitutes a
HEREDOC instead.
2019-08-09 14:55:18 -04:00

18 lines
299 B
Bash
Executable File

#!/bin/sh
if [ -z "${CSP+is_set}" ]; then
CSP=mock
fi
if [ $CSP = "aws" ]; then
echo "CLOUD_PROVIDER=aws" > .env
elif [ $CSP = "azure" ]; then
cat << EOF > .env
CLOUD_PROVIDER=azure
AZURE_ACCOUNT_NAME=atat
AZURE_CONTAINER_NAME=task-order-pdfs
EOF
else
echo "CLOUD_PROVIDER=mock" > .env
fi