You've already forked postgres
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:
@ -29,7 +29,8 @@ if [ "$1" = 'postgres' ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
: ${POSTGRES_USER:=postgres}
|
: ${POSTGRES_USER:=postgres}
|
||||||
if [ "$POSTGRES_USER" = 'postgres' ]; then
|
: ${POSTGRES_DB:=$POSTGRES_USER}
|
||||||
|
if [ "$POSTGRES_DB" = 'postgres' ]; then
|
||||||
op='ALTER'
|
op='ALTER'
|
||||||
else
|
else
|
||||||
op='CREATE'
|
op='CREATE'
|
||||||
|
Reference in New Issue
Block a user