1
0
mirror of https://github.com/docker-library/postgres.git synced 2025-07-29 21:41:20 +03:00

updated template docker-entrypoint

This commit is contained in:
Justin Garrison
2015-02-13 09:54:07 -08:00
parent 167c2ae963
commit c863eb3471

View File

@ -29,7 +29,8 @@ if [ "$1" = 'postgres' ]; then
fi
: ${POSTGRES_USER:=postgres}
if [ "$POSTGRES_USER" = 'postgres' ]; then
: ${POSTGRES_DB:=$POSTGRES_USER}
if [ "$POSTGRES_DB" = 'postgres' ]; then
op='ALTER'
else
op='CREATE'