From 2fa5adc2b0b42f2e2d2d95c83254f33614d245a0 Mon Sep 17 00:00:00 2001 From: "Nikita P. Shupeyko" Date: Wed, 4 Apr 2018 11:43:39 +0300 Subject: [PATCH] Designate 'postgres' as a variable in entrypoint.sh Rationale: clarity. --- .../compose/production/django/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.project_slug}}/compose/production/django/entrypoint.sh b/{{cookiecutter.project_slug}}/compose/production/django/entrypoint.sh index 19d2ad7be..67302e2be 100644 --- a/{{cookiecutter.project_slug}}/compose/production/django/entrypoint.sh +++ b/{{cookiecutter.project_slug}}/compose/production/django/entrypoint.sh @@ -8,8 +8,8 @@ set -o nounset cmd="$@" if [ -z "${POSTGRES_USER}" ]; then - # the official postgres image uses 'postgres' as default user if not set explictly. - export POSTGRES_USER=postgres + base_postgres_image_default_user='postgres' + export POSTGRES_USER="${base_postgres_image_default_user}" fi export DATABASE_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}"