mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-02-03 21:24:32 +03:00
Designate 'postgres' as a variable in entrypoint.sh
Rationale: clarity.
This commit is contained in:
parent
897d54b690
commit
2fa5adc2b0
|
@ -8,8 +8,8 @@ set -o nounset
|
||||||
cmd="$@"
|
cmd="$@"
|
||||||
|
|
||||||
if [ -z "${POSTGRES_USER}" ]; then
|
if [ -z "${POSTGRES_USER}" ]; then
|
||||||
# the official postgres image uses 'postgres' as default user if not set explictly.
|
base_postgres_image_default_user='postgres'
|
||||||
export POSTGRES_USER=postgres
|
export POSTGRES_USER="${base_postgres_image_default_user}"
|
||||||
fi
|
fi
|
||||||
export DATABASE_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}"
|
export DATABASE_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user