From 09829f949790abf315b7c5d30af7f7d030f35b4f Mon Sep 17 00:00:00 2001 From: Lloyd Rodrigues Powell Date: Tue, 13 Aug 2019 10:48:09 +0100 Subject: [PATCH 1/2] Update docker-entrypoint.sh Update docker-entrypoint.sh to support sub directories as opposed to just the root files. --- 12/docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 155ab3191d06cddddbac6ccb804f919997ae16e5 Mon Sep 17 00:00:00 2001 From: Lloyd Rodrigues Powell Date: Tue, 13 Aug 2019 10:49:13 +0100 Subject: [PATCH 2/2] Update docker-entrypoint.sh Update docker-entrypoint.sh to support sub directories as opposed to just the root files. --- 12/alpine/docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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