read POSTGRES_DB env variable when linked with official postgres image

This commit is contained in:
Sameer Naik 2016-01-14 12:34:24 +05:30
parent 4bab4fcea6
commit 3cff982096

View File

@ -113,7 +113,7 @@ gitlab_finalize_database_parameters() {
# support for linked official postgres image
DB_USER=${DB_USER:-${POSTGRESQL_ENV_POSTGRES_USER}}
DB_PASS=${DB_PASS:-${POSTGRESQL_ENV_POSTGRES_PASSWORD}}
DB_NAME=${DB_NAME:-${DB_USER}}
DB_NAME=${DB_NAME:-${POSTGRESQL_ENV_POSTGRES_DB}}
# support for linked sameersbn/postgresql image
DB_USER=${DB_USER:-${POSTGRESQL_ENV_DB_USER}}