diff --git a/11/alpine/docker-entrypoint.sh b/11/alpine/docker-entrypoint.sh index 6dce8a15c6..69373605ce 100755 --- a/11/alpine/docker-entrypoint.sh +++ b/11/alpine/docker-entrypoint.sh @@ -83,7 +83,8 @@ if [ "$1" = 'postgres' ]; then # check password first so we can output the warning before postgres # messes it up if [ -n "$POSTGRES_PASSWORD" ]; then - authMethod=md5 + file_env 'POSTGRES_AUTH_METHOD' + authMethod="${POSTGRES_AUTH_METHOD:-md5}" if [ "${#POSTGRES_PASSWORD}" -ge 100 ]; then cat >&2 <<-'EOWARN'