diff --git a/12/alpine/docker-entrypoint.sh b/12/alpine/docker-entrypoint.sh index 6dce8a15c6..fe436b01dd 100755 --- a/12/alpine/docker-entrypoint.sh +++ b/12/alpine/docker-entrypoint.sh @@ -142,7 +142,7 @@ if [ "$1" = 'postgres' ]; then psql+=( --dbname "$POSTGRES_DB" ) echo - for f in /docker-entrypoint-initdb.d/*; do + for f in /docker-entrypoint-initdb.d/*/**; do case "$f" in *.sh) # https://github.com/docker-library/postgres/issues/450#issuecomment-393167936 diff --git a/12/docker-entrypoint.sh b/12/docker-entrypoint.sh index 93ee4fba4d..c6b1fb7247 100755 --- a/12/docker-entrypoint.sh +++ b/12/docker-entrypoint.sh @@ -142,7 +142,7 @@ if [ "$1" = 'postgres' ]; then psql+=( --dbname "$POSTGRES_DB" ) echo - for f in /docker-entrypoint-initdb.d/*; do + for f in /docker-entrypoint-initdb.d/*/**; do case "$f" in *.sh) # https://github.com/docker-library/postgres/issues/450#issuecomment-393167936