diff --git a/entrypoint.sh b/entrypoint.sh index 83c5346..b33fd98 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -28,10 +28,12 @@ cat < .aws/credentials aws_access_key_id = ${AWS_ACCESS_KEY_ID} aws_secret_access_key = ${AWS_SECRET_ACCESS_KEY} EOF +if [ ! -z "$AWS_DEFAULT_REGION" ]; then cat < .aws/config [default] region = ${AWS_DEFAULT_REGION} EOF +fi # Add our cron entry, and direct stdout & stderr to Docker commands stdout echo "Installing cron.d entry: docker-volume-backup-companion"