8000 updated template docker-entrypoint · zerolugithub/postgres@c863eb3 · GitHub
[go: up one dir, main page]

Skip to content

Commit c863eb3

Browse files
committed
updated template docker-entrypoint
1 parent 167c2ae commit c863eb3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docker-entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ if [ "$1" = 'postgres' ]; then
2929
fi
3030

3131
: ${POSTGRES_USER:=postgres}
32-
if [ "$POSTGRES_USER" = 'postgres' ]; then
32+
: ${POSTGRES_DB:=$POSTGRES_USER}
33+
if [ "$POSTGRES_DB" = 'postgres' ]; then
3334
op='ALTER'
3435
else
3536
op='CREATE'

0 commit comments

Comments
 (0)
0