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.
18 lines
299 B
Bash
Executable File
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
|