Merge pull request #1166 from infosiftr/unlimited-passwords
Only print password length warning for 12 and 13
This commit is contained in:
commit
ce5bf6e7eb
|
|
@ -103,6 +103,8 @@ docker_init_database_dir() {
|
||||||
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
||||||
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
||||||
docker_verify_minimum_env() {
|
docker_verify_minimum_env() {
|
||||||
|
case "${PG_MAJOR:-}" in
|
||||||
|
12 | 13) # https://github.com/postgres/postgres/commit/67a472d71c98c3d2fa322a1b4013080b20720b98
|
||||||
# check password first so we can output the warning before postgres
|
# check password first so we can output the warning before postgres
|
||||||
# messes it up
|
# messes it up
|
||||||
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
||||||
|
|
@ -117,6 +119,8 @@ docker_verify_minimum_env() {
|
||||||
|
|
||||||
EOWARN
|
EOWARN
|
||||||
fi
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
||||||
# The - option suppresses leading tabs but *not* spaces. :)
|
# The - option suppresses leading tabs but *not* spaces. :)
|
||||||
cat >&2 <<-'EOE'
|
cat >&2 <<-'EOE'
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,8 @@ docker_init_database_dir() {
|
||||||
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
||||||
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
||||||
docker_verify_minimum_env() {
|
docker_verify_minimum_env() {
|
||||||
|
case "${PG_MAJOR:-}" in
|
||||||
|
12 | 13) # https://github.com/postgres/postgres/commit/67a472d71c98c3d2fa322a1b4013080b20720b98
|
||||||
# check password first so we can output the warning before postgres
|
# check password first so we can output the warning before postgres
|
||||||
# messes it up
|
# messes it up
|
||||||
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
||||||
|
|
@ -117,6 +119,8 @@ docker_verify_minimum_env() {
|
||||||
|
|
||||||
EOWARN
|
EOWARN
|
||||||
fi
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
||||||
# The - option suppresses leading tabs but *not* spaces. :)
|
# The - option suppresses leading tabs but *not* spaces. :)
|
||||||
cat >&2 <<-'EOE'
|
cat >&2 <<-'EOE'
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,8 @@ docker_init_database_dir() {
|
||||||
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
||||||
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
||||||
docker_verify_minimum_env() {
|
docker_verify_minimum_env() {
|
||||||
|
case "${PG_MAJOR:-}" in
|
||||||
|
12 | 13) # https://github.com/postgres/postgres/commit/67a472d71c98c3d2fa322a1b4013080b20720b98
|
||||||
# check password first so we can output the warning before postgres
|
# check password first so we can output the warning before postgres
|
||||||
# messes it up
|
# messes it up
|
||||||
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
||||||
|
|
@ -117,6 +119,8 @@ docker_verify_minimum_env() {
|
||||||
|
|
||||||
EOWARN
|
EOWARN
|
||||||
fi
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
||||||
# The - option suppresses leading tabs but *not* spaces. :)
|
# The - option suppresses leading tabs but *not* spaces. :)
|
||||||
cat >&2 <<-'EOE'
|
cat >&2 <<-'EOE'
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,8 @@ docker_init_database_dir() {
|
||||||
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
||||||
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
||||||
docker_verify_minimum_env() {
|
docker_verify_minimum_env() {
|
||||||
|
case "${PG_MAJOR:-}" in
|
||||||
|
12 | 13) # https://github.com/postgres/postgres/commit/67a472d71c98c3d2fa322a1b4013080b20720b98
|
||||||
# check password first so we can output the warning before postgres
|
# check password first so we can output the warning before postgres
|
||||||
# messes it up
|
# messes it up
|
||||||
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
||||||
|
|
@ -117,6 +119,8 @@ docker_verify_minimum_env() {
|
||||||
|
|
||||||
EOWARN
|
EOWARN
|
||||||
fi
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
||||||
# The - option suppresses leading tabs but *not* spaces. :)
|
# The - option suppresses leading tabs but *not* spaces. :)
|
||||||
cat >&2 <<-'EOE'
|
cat >&2 <<-'EOE'
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,8 @@ docker_init_database_dir() {
|
||||||
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
||||||
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
||||||
docker_verify_minimum_env() {
|
docker_verify_minimum_env() {
|
||||||
|
case "${PG_MAJOR:-}" in
|
||||||
|
12 | 13) # https://github.com/postgres/postgres/commit/67a472d71c98c3d2fa322a1b4013080b20720b98
|
||||||
# check password first so we can output the warning before postgres
|
# check password first so we can output the warning before postgres
|
||||||
# messes it up
|
# messes it up
|
||||||
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
||||||
|
|
@ -117,6 +119,8 @@ docker_verify_minimum_env() {
|
||||||
|
|
||||||
EOWARN
|
EOWARN
|
||||||
fi
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
||||||
# The - option suppresses leading tabs but *not* spaces. :)
|
# The - option suppresses leading tabs but *not* spaces. :)
|
||||||
cat >&2 <<-'EOE'
|
cat >&2 <<-'EOE'
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,8 @@ docker_init_database_dir() {
|
||||||
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
||||||
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
||||||
docker_verify_minimum_env() {
|
docker_verify_minimum_env() {
|
||||||
|
case "${PG_MAJOR:-}" in
|
||||||
|
12 | 13) # https://github.com/postgres/postgres/commit/67a472d71c98c3d2fa322a1b4013080b20720b98
|
||||||
# check password first so we can output the warning before postgres
|
# check password first so we can output the warning before postgres
|
||||||
# messes it up
|
# messes it up
|
||||||
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
||||||
|
|
@ -117,6 +119,8 @@ docker_verify_minimum_env() {
|
||||||
|
|
||||||
EOWARN
|
EOWARN
|
||||||
fi
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
||||||
# The - option suppresses leading tabs but *not* spaces. :)
|
# The - option suppresses leading tabs but *not* spaces. :)
|
||||||
cat >&2 <<-'EOE'
|
cat >&2 <<-'EOE'
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,8 @@ docker_init_database_dir() {
|
||||||
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
||||||
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
||||||
docker_verify_minimum_env() {
|
docker_verify_minimum_env() {
|
||||||
|
case "${PG_MAJOR:-}" in
|
||||||
|
12 | 13) # https://github.com/postgres/postgres/commit/67a472d71c98c3d2fa322a1b4013080b20720b98
|
||||||
# check password first so we can output the warning before postgres
|
# check password first so we can output the warning before postgres
|
||||||
# messes it up
|
# messes it up
|
||||||
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
||||||
|
|
@ -117,6 +119,8 @@ docker_verify_minimum_env() {
|
||||||
|
|
||||||
EOWARN
|
EOWARN
|
||||||
fi
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
||||||
# The - option suppresses leading tabs but *not* spaces. :)
|
# The - option suppresses leading tabs but *not* spaces. :)
|
||||||
cat >&2 <<-'EOE'
|
cat >&2 <<-'EOE'
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,8 @@ docker_init_database_dir() {
|
||||||
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
||||||
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
||||||
docker_verify_minimum_env() {
|
docker_verify_minimum_env() {
|
||||||
|
case "${PG_MAJOR:-}" in
|
||||||
|
12 | 13) # https://github.com/postgres/postgres/commit/67a472d71c98c3d2fa322a1b4013080b20720b98
|
||||||
# check password first so we can output the warning before postgres
|
# check password first so we can output the warning before postgres
|
||||||
# messes it up
|
# messes it up
|
||||||
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
||||||
|
|
@ -117,6 +119,8 @@ docker_verify_minimum_env() {
|
||||||
|
|
||||||
EOWARN
|
EOWARN
|
||||||
fi
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
||||||
# The - option suppresses leading tabs but *not* spaces. :)
|
# The - option suppresses leading tabs but *not* spaces. :)
|
||||||
cat >&2 <<-'EOE'
|
cat >&2 <<-'EOE'
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,8 @@ docker_init_database_dir() {
|
||||||
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
||||||
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
||||||
docker_verify_minimum_env() {
|
docker_verify_minimum_env() {
|
||||||
|
case "${PG_MAJOR:-}" in
|
||||||
|
12 | 13) # https://github.com/postgres/postgres/commit/67a472d71c98c3d2fa322a1b4013080b20720b98
|
||||||
# check password first so we can output the warning before postgres
|
# check password first so we can output the warning before postgres
|
||||||
# messes it up
|
# messes it up
|
||||||
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
||||||
|
|
@ -117,6 +119,8 @@ docker_verify_minimum_env() {
|
||||||
|
|
||||||
EOWARN
|
EOWARN
|
||||||
fi
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
||||||
# The - option suppresses leading tabs but *not* spaces. :)
|
# The - option suppresses leading tabs but *not* spaces. :)
|
||||||
cat >&2 <<-'EOE'
|
cat >&2 <<-'EOE'
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,8 @@ docker_init_database_dir() {
|
||||||
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
||||||
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
||||||
docker_verify_minimum_env() {
|
docker_verify_minimum_env() {
|
||||||
|
case "${PG_MAJOR:-}" in
|
||||||
|
12 | 13) # https://github.com/postgres/postgres/commit/67a472d71c98c3d2fa322a1b4013080b20720b98
|
||||||
# check password first so we can output the warning before postgres
|
# check password first so we can output the warning before postgres
|
||||||
# messes it up
|
# messes it up
|
||||||
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
||||||
|
|
@ -117,6 +119,8 @@ docker_verify_minimum_env() {
|
||||||
|
|
||||||
EOWARN
|
EOWARN
|
||||||
fi
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
||||||
# The - option suppresses leading tabs but *not* spaces. :)
|
# The - option suppresses leading tabs but *not* spaces. :)
|
||||||
cat >&2 <<-'EOE'
|
cat >&2 <<-'EOE'
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,8 @@ docker_init_database_dir() {
|
||||||
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
||||||
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
||||||
docker_verify_minimum_env() {
|
docker_verify_minimum_env() {
|
||||||
|
case "${PG_MAJOR:-}" in
|
||||||
|
12 | 13) # https://github.com/postgres/postgres/commit/67a472d71c98c3d2fa322a1b4013080b20720b98
|
||||||
# check password first so we can output the warning before postgres
|
# check password first so we can output the warning before postgres
|
||||||
# messes it up
|
# messes it up
|
||||||
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
||||||
|
|
@ -117,6 +119,8 @@ docker_verify_minimum_env() {
|
||||||
|
|
||||||
EOWARN
|
EOWARN
|
||||||
fi
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
||||||
# The - option suppresses leading tabs but *not* spaces. :)
|
# The - option suppresses leading tabs but *not* spaces. :)
|
||||||
cat >&2 <<-'EOE'
|
cat >&2 <<-'EOE'
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,8 @@ docker_init_database_dir() {
|
||||||
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
||||||
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
||||||
docker_verify_minimum_env() {
|
docker_verify_minimum_env() {
|
||||||
|
case "${PG_MAJOR:-}" in
|
||||||
|
12 | 13) # https://github.com/postgres/postgres/commit/67a472d71c98c3d2fa322a1b4013080b20720b98
|
||||||
# check password first so we can output the warning before postgres
|
# check password first so we can output the warning before postgres
|
||||||
# messes it up
|
# messes it up
|
||||||
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
||||||
|
|
@ -117,6 +119,8 @@ docker_verify_minimum_env() {
|
||||||
|
|
||||||
EOWARN
|
EOWARN
|
||||||
fi
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
||||||
# The - option suppresses leading tabs but *not* spaces. :)
|
# The - option suppresses leading tabs but *not* spaces. :)
|
||||||
cat >&2 <<-'EOE'
|
cat >&2 <<-'EOE'
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,8 @@ docker_init_database_dir() {
|
||||||
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
||||||
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
||||||
docker_verify_minimum_env() {
|
docker_verify_minimum_env() {
|
||||||
|
case "${PG_MAJOR:-}" in
|
||||||
|
12 | 13) # https://github.com/postgres/postgres/commit/67a472d71c98c3d2fa322a1b4013080b20720b98
|
||||||
# check password first so we can output the warning before postgres
|
# check password first so we can output the warning before postgres
|
||||||
# messes it up
|
# messes it up
|
||||||
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
||||||
|
|
@ -117,6 +119,8 @@ docker_verify_minimum_env() {
|
||||||
|
|
||||||
EOWARN
|
EOWARN
|
||||||
fi
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
||||||
# The - option suppresses leading tabs but *not* spaces. :)
|
# The - option suppresses leading tabs but *not* spaces. :)
|
||||||
cat >&2 <<-'EOE'
|
cat >&2 <<-'EOE'
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,8 @@ docker_init_database_dir() {
|
||||||
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
||||||
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
||||||
docker_verify_minimum_env() {
|
docker_verify_minimum_env() {
|
||||||
|
case "${PG_MAJOR:-}" in
|
||||||
|
12 | 13) # https://github.com/postgres/postgres/commit/67a472d71c98c3d2fa322a1b4013080b20720b98
|
||||||
# check password first so we can output the warning before postgres
|
# check password first so we can output the warning before postgres
|
||||||
# messes it up
|
# messes it up
|
||||||
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
||||||
|
|
@ -117,6 +119,8 @@ docker_verify_minimum_env() {
|
||||||
|
|
||||||
EOWARN
|
EOWARN
|
||||||
fi
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
||||||
# The - option suppresses leading tabs but *not* spaces. :)
|
# The - option suppresses leading tabs but *not* spaces. :)
|
||||||
cat >&2 <<-'EOE'
|
cat >&2 <<-'EOE'
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,8 @@ docker_init_database_dir() {
|
||||||
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
||||||
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
||||||
docker_verify_minimum_env() {
|
docker_verify_minimum_env() {
|
||||||
|
case "${PG_MAJOR:-}" in
|
||||||
|
12 | 13) # https://github.com/postgres/postgres/commit/67a472d71c98c3d2fa322a1b4013080b20720b98
|
||||||
# check password first so we can output the warning before postgres
|
# check password first so we can output the warning before postgres
|
||||||
# messes it up
|
# messes it up
|
||||||
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
||||||
|
|
@ -117,6 +119,8 @@ docker_verify_minimum_env() {
|
||||||
|
|
||||||
EOWARN
|
EOWARN
|
||||||
fi
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
||||||
# The - option suppresses leading tabs but *not* spaces. :)
|
# The - option suppresses leading tabs but *not* spaces. :)
|
||||||
cat >&2 <<-'EOE'
|
cat >&2 <<-'EOE'
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,8 @@ docker_init_database_dir() {
|
||||||
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
||||||
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
||||||
docker_verify_minimum_env() {
|
docker_verify_minimum_env() {
|
||||||
|
case "${PG_MAJOR:-}" in
|
||||||
|
12 | 13) # https://github.com/postgres/postgres/commit/67a472d71c98c3d2fa322a1b4013080b20720b98
|
||||||
# check password first so we can output the warning before postgres
|
# check password first so we can output the warning before postgres
|
||||||
# messes it up
|
# messes it up
|
||||||
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
||||||
|
|
@ -117,6 +119,8 @@ docker_verify_minimum_env() {
|
||||||
|
|
||||||
EOWARN
|
EOWARN
|
||||||
fi
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
||||||
# The - option suppresses leading tabs but *not* spaces. :)
|
# The - option suppresses leading tabs but *not* spaces. :)
|
||||||
cat >&2 <<-'EOE'
|
cat >&2 <<-'EOE'
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,8 @@ docker_init_database_dir() {
|
||||||
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
||||||
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
||||||
docker_verify_minimum_env() {
|
docker_verify_minimum_env() {
|
||||||
|
case "${PG_MAJOR:-}" in
|
||||||
|
12 | 13) # https://github.com/postgres/postgres/commit/67a472d71c98c3d2fa322a1b4013080b20720b98
|
||||||
# check password first so we can output the warning before postgres
|
# check password first so we can output the warning before postgres
|
||||||
# messes it up
|
# messes it up
|
||||||
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
||||||
|
|
@ -117,6 +119,8 @@ docker_verify_minimum_env() {
|
||||||
|
|
||||||
EOWARN
|
EOWARN
|
||||||
fi
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
||||||
# The - option suppresses leading tabs but *not* spaces. :)
|
# The - option suppresses leading tabs but *not* spaces. :)
|
||||||
cat >&2 <<-'EOE'
|
cat >&2 <<-'EOE'
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,8 @@ docker_init_database_dir() {
|
||||||
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
||||||
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
||||||
docker_verify_minimum_env() {
|
docker_verify_minimum_env() {
|
||||||
|
case "${PG_MAJOR:-}" in
|
||||||
|
12 | 13) # https://github.com/postgres/postgres/commit/67a472d71c98c3d2fa322a1b4013080b20720b98
|
||||||
# check password first so we can output the warning before postgres
|
# check password first so we can output the warning before postgres
|
||||||
# messes it up
|
# messes it up
|
||||||
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
||||||
|
|
@ -117,6 +119,8 @@ docker_verify_minimum_env() {
|
||||||
|
|
||||||
EOWARN
|
EOWARN
|
||||||
fi
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
||||||
# The - option suppresses leading tabs but *not* spaces. :)
|
# The - option suppresses leading tabs but *not* spaces. :)
|
||||||
cat >&2 <<-'EOE'
|
cat >&2 <<-'EOE'
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,8 @@ docker_init_database_dir() {
|
||||||
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
||||||
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
||||||
docker_verify_minimum_env() {
|
docker_verify_minimum_env() {
|
||||||
|
case "${PG_MAJOR:-}" in
|
||||||
|
12 | 13) # https://github.com/postgres/postgres/commit/67a472d71c98c3d2fa322a1b4013080b20720b98
|
||||||
# check password first so we can output the warning before postgres
|
# check password first so we can output the warning before postgres
|
||||||
# messes it up
|
# messes it up
|
||||||
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
||||||
|
|
@ -117,6 +119,8 @@ docker_verify_minimum_env() {
|
||||||
|
|
||||||
EOWARN
|
EOWARN
|
||||||
fi
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
||||||
# The - option suppresses leading tabs but *not* spaces. :)
|
# The - option suppresses leading tabs but *not* spaces. :)
|
||||||
cat >&2 <<-'EOE'
|
cat >&2 <<-'EOE'
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,8 @@ docker_init_database_dir() {
|
||||||
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
||||||
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
||||||
docker_verify_minimum_env() {
|
docker_verify_minimum_env() {
|
||||||
|
case "${PG_MAJOR:-}" in
|
||||||
|
12 | 13) # https://github.com/postgres/postgres/commit/67a472d71c98c3d2fa322a1b4013080b20720b98
|
||||||
# check password first so we can output the warning before postgres
|
# check password first so we can output the warning before postgres
|
||||||
# messes it up
|
# messes it up
|
||||||
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
||||||
|
|
@ -117,6 +119,8 @@ docker_verify_minimum_env() {
|
||||||
|
|
||||||
EOWARN
|
EOWARN
|
||||||
fi
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
||||||
# The - option suppresses leading tabs but *not* spaces. :)
|
# The - option suppresses leading tabs but *not* spaces. :)
|
||||||
cat >&2 <<-'EOE'
|
cat >&2 <<-'EOE'
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,8 @@ docker_init_database_dir() {
|
||||||
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
|
||||||
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
|
||||||
docker_verify_minimum_env() {
|
docker_verify_minimum_env() {
|
||||||
|
case "${PG_MAJOR:-}" in
|
||||||
|
12 | 13) # https://github.com/postgres/postgres/commit/67a472d71c98c3d2fa322a1b4013080b20720b98
|
||||||
# check password first so we can output the warning before postgres
|
# check password first so we can output the warning before postgres
|
||||||
# messes it up
|
# messes it up
|
||||||
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then
|
||||||
|
|
@ -117,6 +119,8 @@ docker_verify_minimum_env() {
|
||||||
|
|
||||||
EOWARN
|
EOWARN
|
||||||
fi
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
if [ -z "$POSTGRES_PASSWORD" ] && [ 'trust' != "$POSTGRES_HOST_AUTH_METHOD" ]; then
|
||||||
# The - option suppresses leading tabs but *not* spaces. :)
|
# The - option suppresses leading tabs but *not* spaces. :)
|
||||||
cat >&2 <<-'EOE'
|
cat >&2 <<-'EOE'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue