Skip to content

Commit

Permalink
Merge pull request #186 from vdice/fix-aws-cred-logic
Browse files Browse the repository at this point in the history
fix(001_setup_envdir.sh): inspect actual var instead of literal string
  • Loading branch information
Vaughn Dice authored Jan 30, 2017
2 parents 7fa8297 + c9f6e01 commit 6659712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/docker-entrypoint-initdb.d/001_setup_envdir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if [[ "$DATABASE_STORAGE" == "s3" || "$DATABASE_STORAGE" == "minio" ]]; then
echo "s3://$BUCKET_NAME" > WALE_S3_PREFIX
# if these values are empty, then the user is using IAM credentials so we don't want these in the
# environment
if [[ "$AWS_ACCESS_KEY_ID" != "" && "AWS_SECRET_ACCESS_KEY" != "" ]]; then
if [[ "$AWS_ACCESS_KEY_ID" != "" && "$AWS_SECRET_ACCESS_KEY" != "" ]]; then
echo $AWS_ACCESS_KEY_ID > AWS_ACCESS_KEY_ID
echo $AWS_SECRET_ACCESS_KEY > AWS_SECRET_ACCESS_KEY
fi
Expand Down

0 comments on commit 6659712

Please sign in to comment.