Merge pull request #84 from appropriate/export-entrypoint-vars
Export POSTGRES_USER and POSTGRES_DB vars in entrypoint
This commit is contained in:
commit
87b8be7e9b
|
|
@ -52,6 +52,7 @@ if [ "$1" = 'postgres' ]; then
|
|||
|
||||
: ${POSTGRES_USER:=postgres}
|
||||
: ${POSTGRES_DB:=$POSTGRES_USER}
|
||||
export POSTGRES_USER POSTGRES_DB
|
||||
|
||||
if [ "$POSTGRES_DB" != 'postgres' ]; then
|
||||
psql --username postgres <<-EOSQL
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ if [ "$1" = 'postgres' ]; then
|
|||
|
||||
: ${POSTGRES_USER:=postgres}
|
||||
: ${POSTGRES_DB:=$POSTGRES_USER}
|
||||
export POSTGRES_USER POSTGRES_DB
|
||||
|
||||
if [ "$POSTGRES_DB" != 'postgres' ]; then
|
||||
psql --username postgres <<-EOSQL
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ if [ "$1" = 'postgres' ]; then
|
|||
|
||||
: ${POSTGRES_USER:=postgres}
|
||||
: ${POSTGRES_DB:=$POSTGRES_USER}
|
||||
export POSTGRES_USER POSTGRES_DB
|
||||
|
||||
if [ "$POSTGRES_DB" != 'postgres' ]; then
|
||||
psql --username postgres <<-EOSQL
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ if [ "$1" = 'postgres' ]; then
|
|||
|
||||
: ${POSTGRES_USER:=postgres}
|
||||
: ${POSTGRES_DB:=$POSTGRES_USER}
|
||||
export POSTGRES_USER POSTGRES_DB
|
||||
|
||||
if [ "$POSTGRES_DB" != 'postgres' ]; then
|
||||
psql --username postgres <<-EOSQL
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ if [ "$1" = 'postgres' ]; then
|
|||
|
||||
: ${POSTGRES_USER:=postgres}
|
||||
: ${POSTGRES_DB:=$POSTGRES_USER}
|
||||
export POSTGRES_USER POSTGRES_DB
|
||||
|
||||
if [ "$POSTGRES_DB" != 'postgres' ]; then
|
||||
psql --username postgres <<-EOSQL
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ if [ "$1" = 'postgres' ]; then
|
|||
|
||||
: ${POSTGRES_USER:=postgres}
|
||||
: ${POSTGRES_DB:=$POSTGRES_USER}
|
||||
export POSTGRES_USER POSTGRES_DB
|
||||
|
||||
if [ "$POSTGRES_DB" != 'postgres' ]; then
|
||||
psql --username postgres <<-EOSQL
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ if [ "$1" = 'postgres' ]; then
|
|||
|
||||
: ${POSTGRES_USER:=postgres}
|
||||
: ${POSTGRES_DB:=$POSTGRES_USER}
|
||||
export POSTGRES_USER POSTGRES_DB
|
||||
|
||||
if [ "$POSTGRES_DB" != 'postgres' ]; then
|
||||
psql --username postgres <<-EOSQL
|
||||
|
|
|
|||
Loading…
Reference in New Issue