File tree 11 files changed +143
-0
lines changed
11 files changed +143
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,19 @@ if [ "$1" = 'postgres' ]; then
84
84
# messes it up
85
85
if [ -n " $POSTGRES_PASSWORD " ]; then
86
86
authMethod=md5
87
+
88
+ if [ " ${# POSTGRES_PASSWORD} " -ge 100 ]; then
89
+ cat >&2 << -'EOWARN '
90
+
91
+ WARNING: The supplied POSTGRES_PASSWORD is 100+ characters.
92
+
93
+ This will not work if used via PGPASSWORD with "psql".
94
+
95
+ https://www.postgresql.org/message-id/flat/E1Rqxp2-0004Qt-PL%40wrigleys.postgresql.org (BUG #6412)
96
+ https://github.com/docker-library/postgres/issues/507
97
+
98
+ EOWARN
99
+ fi
87
100
else
88
101
# The - option suppresses leading tabs but *not* spaces. :)
89
102
cat >&2 << -'EOWARN '
Original file line number Diff line number Diff line change @@ -84,6 +84,19 @@ if [ "$1" = 'postgres' ]; then
84
84
# messes it up
85
85
if [ -n " $POSTGRES_PASSWORD " ]; then
86
86
authMethod=md5
87
+
88
+ if [ " ${# POSTGRES_PASSWORD} " -ge 100 ]; then
89
+ cat >&2 << -'EOWARN '
90
+
91
+ WARNING: The supplied POSTGRES_PASSWORD is 100+ characters.
92
+
93
+ This will not work if used via PGPASSWORD with "psql".
94
+
95
+ https://www.postgresql.org/message-id/flat/E1Rqxp2-0004Qt-PL%40wrigleys.postgresql.org (BUG #6412)
96
+ https://github.com/docker-library/postgres/issues/507
97
+
98
+ EOWARN
99
+ fi
87
100
else
88
101
# The - option suppresses leading tabs but *not* spaces. :)
89
102
cat >&2 << -'EOWARN '
Original file line number Diff line number Diff line change @@ -84,6 +84,19 @@ if [ "$1" = 'postgres' ]; then
84
84
# messes it up
85
85
if [ -n " $POSTGRES_PASSWORD " ]; then
86
86
authMethod=md5
87
+
88
+ if [ " ${# POSTGRES_PASSWORD} " -ge 100 ]; then
89
+ cat >&2 << -'EOWARN '
90
+
91
+ WARNING: The supplied POSTGRES_PASSWORD is 100+ characters.
92
+
93
+ This will not work if used via PGPASSWORD with "psql".
94
+
95
+ https://www.postgresql.org/message-id/flat/E1Rqxp2-0004Qt-PL%40wrigleys.postgresql.org (BUG #6412)
96
+ https://github.com/docker-library/postgres/issues/507
97
+
98
+ EOWARN
99
+ fi
87
100
else
88
101
# The - option suppresses leading tabs but *not* spaces. :)
89
102
cat >&2 << -'EOWARN '
Original file line number Diff line number Diff line change @@ -84,6 +84,19 @@ if [ "$1" = 'postgres' ]; then
84
84
# messes it up
85
85
if [ -n " $POSTGRES_PASSWORD " ]; then
86
86
authMethod=md5
87
+
88
+ if [ " ${# POSTGRES_PASSWORD} " -ge 100 ]; then
89
+ cat >&2 << -'EOWARN '
90
+
91
+ WARNING: The supplied POSTGRES_PASSWORD is 100+ characters.
92
+
93
+ This will not work if used via PGPASSWORD with "psql".
94
+
95
+ https://www.postgresql.org/message-id/flat/E1Rqxp2-0004Qt-PL%40wrigleys.postgresql.org (BUG #6412)
96
+ https://github.com/docker-library/postgres/issues/507
97
+
98
+ EOWARN
99
+ fi
87
100
else
88
101
# The - option suppresses leading tabs but *not* spaces. :)
89
102
cat >&2 << -'EOWARN '
Original file line number Diff line number Diff line change @@ -84,6 +84,19 @@ if [ "$1" = 'postgres' ]; then
84
84
# messes it up
85
85
if [ -n " $POSTGRES_PASSWORD " ]; then
86
86
authMethod=md5
87
+
88
+ if [ " ${# POSTGRES_PASSWORD} " -ge 100 ]; then
89
+ cat >&2 << -'EOWARN '
90
+
91
+ WARNING: The supplied POSTGRES_PASSWORD is 100+ characters.
92
+
93
+ This will not work if used via PGPASSWORD with "psql".
94
+
95
+ https://www.postgresql.org/message-id/flat/E1Rqxp2-0004Qt-PL%40wrigleys.postgresql.org (BUG #6412)
96
+ https://github.com/docker-library/postgres/issues/507
97
+
98
+ EOWARN
99
+ fi
87
100
else
88
101
# The - option suppresses leading tabs but *not* spaces. :)
89
102
cat >&2 << -'EOWARN '
Original file line number Diff line number Diff line change @@ -84,6 +84,19 @@ if [ "$1" = 'postgres' ]; then
84
84
# messes it up
85
85
if [ -n " $POSTGRES_PASSWORD " ]; then
86
86
authMethod=md5
87
+
88
+ if [ " ${# POSTGRES_PASSWORD} " -ge 100 ]; then
89
+ cat >&2 << -'EOWARN '
90
+
91
+ WARNING: The supplied POSTGRES_PASSWORD is 100+ characters.
92
+
93
+ This will not work if used via PGPASSWORD with "psql".
94
+
95
+ https://www.postgresql.org/message-id/flat/E1Rqxp2-0004Qt-PL%40wrigleys.postgresql.org (BUG #6412)
96
+ https://github.com/docker-library/postgres/issues/507
97
+
98
+ EOWARN
99
+ fi
87
100
else
88
101
# The - option suppresses leading tabs but *not* spaces. :)
89
102
cat >&2 << -'EOWARN '
Original file line number Diff line number Diff line change @@ -84,6 +84,19 @@ if [ "$1" = 'postgres' ]; then
84
84
# messes it up
85
85
if [ -n " $POSTGRES_PASSWORD " ]; then
86
86
authMethod=md5
87
+
88
+ if [ " ${# POSTGRES_PASSWORD} " -ge 100 ]; then
89
+ cat >&2 << -'EOWARN '
90
+
91
+ WARNING: The supplied POSTGRES_PASSWORD is 100+ characters.
92
+
93
+ This will not work if used via PGPASSWORD with "psql".
94
+
95
+ https://www.postgresql.org/message-id/flat/E1Rqxp2-0004Qt-PL%40wrigleys.postgresql.org (BUG #6412)
96
+ https://github.com/docker-library/postgres/issues/507
97
+
98
+ EOWARN
99
+ fi
87
100
else
88
101
# The - option suppresses leading tabs but *not* spaces. :)
89
102
cat >&2 << -'EOWARN '
Original file line number Diff line number Diff line change @@ -84,6 +84,19 @@ if [ "$1" = 'postgres' ]; then
84
84
# messes it up
85
85
if [ -n " $POSTGRES_PASSWORD " ]; then
86
86
authMethod=md5
87
+
88
+ if [ " ${# POSTGRES_PASSWORD} " -ge 100 ]; then
89
+ cat >&2 << -'EOWARN '
90
+
91
+ WARNING: The supplied POSTGRES_PASSWORD is 100+ characters.
92
+
93
+ This will not work if used via PGPASSWORD with "psql".
94
+
95
+ https://www.postgresql.org/message-id/flat/E1Rqxp2-0004Qt-PL%40wrigleys.postgresql.org (BUG #6412)
96
+ https://github.com/docker-library/postgres/issues/507
97
+
98
+ EOWARN
99
+ fi
87
100
else
88
101
# The - option suppresses leading tabs but *not* spaces. :)
89
102
cat >&2 << -'EOWARN '
Original file line number Diff line number Diff line change @@ -84,6 +84,19 @@ if [ "$1" = 'postgres' ]; then
84
84
# messes it up
85
85
if [ -n " $POSTGRES_PASSWORD " ]; then
86
86
authMethod=md5
87
+
88
+ if [ " ${# POSTGRES_PASSWORD} " -ge 100 ]; then
89
+ cat >&2 << -'EOWARN '
90
+
91
+ WARNING: The supplied POSTGRES_PASSWORD is 100+ characters.
92
+
93
+ This will not work if used via PGPASSWORD with "psql".
94
+
95
+ https://www.postgresql.org/message-id/flat/E1Rqxp2-0004Qt-PL%40wrigleys.postgresql.org (BUG #6412)
96
+ https://github.com/docker-library/postgres/issues/507
97
+
98
+ EOWARN
99
+ fi
87
100
else
88
101
# The - option suppresses leading tabs but *not* spaces. :)
89
102
cat >&2 << -'EOWARN '
Original file line number Diff line number Diff line change @@ -84,6 +84,19 @@ if [ "$1" = 'postgres' ]; then
84
84
# messes it up
85
85
if [ -n " $POSTGRES_PASSWORD " ]; then
86
86
authMethod=md5
87
+
88
+ if [ " ${# POSTGRES_PASSWORD} " -ge 100 ]; then
89
+ cat >&2 << -'EOWARN '
90
+
91
+ WARNING: The supplied POSTGRES_PASSWORD is 100+ characters.
92
+
93
+ This will not work if used via PGPASSWORD with "psql".
94
+
95
+ https://www.postgresql.org/message-id/flat/E1Rqxp2-0004Qt-PL%40wrigleys.postgresql.org (BUG #6412)
96
+ https://github.com/docker-library/postgres/issues/507
97
+
98
+ EOWARN
99
+ fi
87
100
else
88
101
# The - option suppresses leading tabs but *not* spaces. :)
89
102
cat >&2 << -'EOWARN '
Original file line number Diff line number Diff line change @@ -84,6 +84,19 @@ if [ "$1" = 'postgres' ]; then
84
84
# messes it up
85
85
if [ -n " $POSTGRES_PASSWORD " ]; then
86
86
authMethod=md5
87
+
88
+ if [ " ${# POSTGRES_PASSWORD} " -ge 100 ]; then
89
+ cat >&2 << -'EOWARN '
90
+
91
+ WARNING: The supplied POSTGRES_PASSWORD is 100+ characters.
92
+
93
+ This will not work if used via PGPASSWORD with "psql".
94
+
95
+ https://www.postgresql.org/message-id/flat/E1Rqxp2-0004Qt-PL%40wrigleys.postgresql.org (BUG #6412)
96
+ https://github.com/docker-library/postgres/issues/507
97
+
98
+ EOWARN
99
+ fi
87
100
else
88
101
# The - option suppresses leading tabs but *not* spaces. :)
89
102
cat >&2 << -'EOWARN '
You can’t perform that action at this time.
0 commit comments