Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.

Commit 307e76d

Browse files
committed
Some syntax formatting
1 parent 3814660 commit 307e76d

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

setup-configs.sh

+10-11
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
#!/bin/bash
2-
if [[ -z "$GUNICORN_WORKERS" ]]
3-
then
4-
GUNICORN_WORKERS=2
2+
3+
if [[ -z "$GUNICORN_WORKERS" ]] ; then
4+
GUNICORN_WORKERS=2
55
fi
66

7-
if [ "$SETTINGS_FLAVOR" = "prod" ]
8-
then
9-
config=$(<config.yml);
10-
config=${config//s3_access_key: REPLACEME/s3_access_key: $AWS_ACCESS_KEY_ID};
11-
config=${config//s3_secret_key: REPLACEME/s3_secret_key: $AWS_SECRET_KEY};
12-
config=${config//s3_bucket: REPLACEME/s3_bucket: $S3_BUCKET};
13-
config=${config//secret_key: REPLACEME/secret_key: $WORKER_SECRET_KEY};
14-
printf '%s\n' "$config" >config.yml
7+
if [ "$SETTINGS_FLAVOR" = "prod" ] ; then
8+
config=$(<config.yml);
9+
config=${config//s3_access_key: REPLACEME/s3_access_key: $AWS_ACCESS_KEY_ID};
10+
config=${config//s3_secret_key: REPLACEME/s3_secret_key: $AWS_SECRET_KEY};
11+
config=${config//s3_bucket: REPLACEME/s3_bucket: $S3_BUCKET};
12+
config=${config//secret_key: REPLACEME/secret_key: $WORKER_SECRET_KEY};
13+
printf '%s\n' "$config" >config.yml
1514
fi

0 commit comments

Comments
 (0)