Content-Length: 538488 | pFad | http://github.com/aspineon/postgres/commit/04f28840134bdaf72e4cd6e4a5300e9ceb5ea013

BD Merge pull request #694 from infosiftr/ls · aspineon/postgres@04f2884 · GitHub
Skip to content

Commit 04f2884

Browse files
authored
Merge pull request docker-library#694 from infosiftr/ls
Fix silently skipped init scripts
2 parents 0a0f644 + 33bccfc commit 04f2884

11 files changed

+44
-0
lines changed

10/alpine/docker-entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,10 @@ _main() {
284284
# only run initialization on an empty data directory
285285
if [ -z "$DATABASE_ALREADY_EXISTS" ]; then
286286
docker_verify_minimum_env
287+
288+
# check dir permissions to reduce likelihood of half-initialized database
289+
ls /docker-entrypoint-initdb.d/ > /dev/null
290+
287291
docker_init_database_dir
288292
pg_setup_hba_conf
289293

10/docker-entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,10 @@ _main() {
284284
# only run initialization on an empty data directory
285285
if [ -z "$DATABASE_ALREADY_EXISTS" ]; then
286286
docker_verify_minimum_env
287+
288+
# check dir permissions to reduce likelihood of half-initialized database
289+
ls /docker-entrypoint-initdb.d/ > /dev/null
290+
287291
docker_init_database_dir
288292
pg_setup_hba_conf
289293

11/alpine/docker-entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,10 @@ _main() {
284284
# only run initialization on an empty data directory
285285
if [ -z "$DATABASE_ALREADY_EXISTS" ]; then
286286
docker_verify_minimum_env
287+
288+
# check dir permissions to reduce likelihood of half-initialized database
289+
ls /docker-entrypoint-initdb.d/ > /dev/null
290+
287291
docker_init_database_dir
288292
pg_setup_hba_conf
289293

11/docker-entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,10 @@ _main() {
284284
# only run initialization on an empty data directory
285285
if [ -z "$DATABASE_ALREADY_EXISTS" ]; then
286286
docker_verify_minimum_env
287+
288+
# check dir permissions to reduce likelihood of half-initialized database
289+
ls /docker-entrypoint-initdb.d/ > /dev/null
290+
287291
docker_init_database_dir
288292
pg_setup_hba_conf
289293

12/alpine/docker-entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,10 @@ _main() {
284284
# only run initialization on an empty data directory
285285
if [ -z "$DATABASE_ALREADY_EXISTS" ]; then
286286
docker_verify_minimum_env
287+
288+
# check dir permissions to reduce likelihood of half-initialized database
289+
ls /docker-entrypoint-initdb.d/ > /dev/null
290+
287291
docker_init_database_dir
288292
pg_setup_hba_conf
289293

12/docker-entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,10 @@ _main() {
284284
# only run initialization on an empty data directory
285285
if [ -z "$DATABASE_ALREADY_EXISTS" ]; then
286286
docker_verify_minimum_env
287+
288+
# check dir permissions to reduce likelihood of half-initialized database
289+
ls /docker-entrypoint-initdb.d/ > /dev/null
290+
287291
docker_init_database_dir
288292
pg_setup_hba_conf
289293

9.5/alpine/docker-entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,10 @@ _main() {
284284
# only run initialization on an empty data directory
285285
if [ -z "$DATABASE_ALREADY_EXISTS" ]; then
286286
docker_verify_minimum_env
287+
288+
# check dir permissions to reduce likelihood of half-initialized database
289+
ls /docker-entrypoint-initdb.d/ > /dev/null
290+
287291
docker_init_database_dir
288292
pg_setup_hba_conf
289293

9.5/docker-entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,10 @@ _main() {
284284
# only run initialization on an empty data directory
285285
if [ -z "$DATABASE_ALREADY_EXISTS" ]; then
286286
docker_verify_minimum_env
287+
288+
# check dir permissions to reduce likelihood of half-initialized database
289+
ls /docker-entrypoint-initdb.d/ > /dev/null
290+
287291
docker_init_database_dir
288292
pg_setup_hba_conf
289293

9.6/alpine/docker-entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,10 @@ _main() {
284284
# only run initialization on an empty data directory
285285
if [ -z "$DATABASE_ALREADY_EXISTS" ]; then
286286
docker_verify_minimum_env
287+
288+
# check dir permissions to reduce likelihood of half-initialized database
289+
ls /docker-entrypoint-initdb.d/ > /dev/null
290+
287291
docker_init_database_dir
288292
pg_setup_hba_conf
289293

9.6/docker-entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,10 @@ _main() {
284284
# only run initialization on an empty data directory
285285
if [ -z "$DATABASE_ALREADY_EXISTS" ]; then
286286
docker_verify_minimum_env
287+
288+
# check dir permissions to reduce likelihood of half-initialized database
289+
ls /docker-entrypoint-initdb.d/ > /dev/null
290+
287291
docker_init_database_dir
288292
pg_setup_hba_conf
289293

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/aspineon/postgres/commit/04f28840134bdaf72e4cd6e4a5300e9ceb5ea013

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy