Skip to content

Commit a77d4a5

Browse files
authored
Merge pull request #639 from kototoyo/master
Garbled characters in the processing of docker-entrypoint-initdb.d
2 parents 3e9610e + 69e4645 commit a77d4a5

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Diff for: .template.Debian/docker-entrypoint.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ docker_process_sql() {
198198
set -- --database="$MYSQL_DATABASE" "$@"
199199
fi
200200

201-
mysql --defaults-file=<( _mysql_passfile "${passfileArgs[@]}") --protocol=socket -uroot -hlocalhost --socket="${SOCKET}" "$@"
201+
mysql --defaults-extra-file=<( _mysql_passfile "${passfileArgs[@]}") --protocol=socket -uroot -hlocalhost --socket="${SOCKET}" "$@"
202202
}
203203

204204
# Initializes database with timezone info and root password, plus optional extra db/user
@@ -284,7 +284,7 @@ docker_setup_db() {
284284
_mysql_passfile() {
285285
# echo the password to the "file" the client uses
286286
# the client command will use process substitution to create a file on the fly
287-
# ie: --defaults-file=<( _mysql_passfile )
287+
# ie: --defaults-extra-file=<( _mysql_passfile )
288288
if [ '--dont-use-mysql-root-password' != "$1" ] && [ -n "$MYSQL_ROOT_PASSWORD" ]; then
289289
cat <<-EOF
290290
[client]

Diff for: 5.6/docker-entrypoint.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ docker_process_sql() {
198198
set -- --database="$MYSQL_DATABASE" "$@"
199199
fi
200200

201-
mysql --defaults-file=<( _mysql_passfile "${passfileArgs[@]}") --protocol=socket -uroot -hlocalhost --socket="${SOCKET}" "$@"
201+
mysql --defaults-extra-file=<( _mysql_passfile "${passfileArgs[@]}") --protocol=socket -uroot -hlocalhost --socket="${SOCKET}" "$@"
202202
}
203203

204204
# Initializes database with timezone info and root password, plus optional extra db/user
@@ -284,7 +284,7 @@ docker_setup_db() {
284284
_mysql_passfile() {
285285
# echo the password to the "file" the client uses
286286
# the client command will use process substitution to create a file on the fly
287-
# ie: --defaults-file=<( _mysql_passfile )
287+
# ie: --defaults-extra-file=<( _mysql_passfile )
288288
if [ '--dont-use-mysql-root-password' != "$1" ] && [ -n "$MYSQL_ROOT_PASSWORD" ]; then
289289
cat <<-EOF
290290
[client]

Diff for: 5.7/docker-entrypoint.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ docker_process_sql() {
198198
set -- --database="$MYSQL_DATABASE" "$@"
199199
fi
200200

201-
mysql --defaults-file=<( _mysql_passfile "${passfileArgs[@]}") --protocol=socket -uroot -hlocalhost --socket="${SOCKET}" "$@"
201+
mysql --defaults-extra-file=<( _mysql_passfile "${passfileArgs[@]}") --protocol=socket -uroot -hlocalhost --socket="${SOCKET}" "$@"
202202
}
203203

204204
# Initializes database with timezone info and root password, plus optional extra db/user
@@ -284,7 +284,7 @@ docker_setup_db() {
284284
_mysql_passfile() {
285285
# echo the password to the "file" the client uses
286286
# the client command will use process substitution to create a file on the fly
287-
# ie: --defaults-file=<( _mysql_passfile )
287+
# ie: --defaults-extra-file=<( _mysql_passfile )
288288
if [ '--dont-use-mysql-root-password' != "$1" ] && [ -n "$MYSQL_ROOT_PASSWORD" ]; then
289289
cat <<-EOF
290290
[client]

Diff for: 8.0/docker-entrypoint.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ docker_process_sql() {
198198
set -- --database="$MYSQL_DATABASE" "$@"
199199
fi
200200

201-
mysql --defaults-file=<( _mysql_passfile "${passfileArgs[@]}") --protocol=socket -uroot -hlocalhost --socket="${SOCKET}" "$@"
201+
mysql --defaults-extra-file=<( _mysql_passfile "${passfileArgs[@]}") --protocol=socket -uroot -hlocalhost --socket="${SOCKET}" "$@"
202202
}
203203

204204
# Initializes database with timezone info and root password, plus optional extra db/user
@@ -284,7 +284,7 @@ docker_setup_db() {
284284
_mysql_passfile() {
285285
# echo the password to the "file" the client uses
286286
# the client command will use process substitution to create a file on the fly
287-
# ie: --defaults-file=<( _mysql_passfile )
287+
# ie: --defaults-extra-file=<( _mysql_passfile )
288288
if [ '--dont-use-mysql-root-password' != "$1" ] && [ -n "$MYSQL_ROOT_PASSWORD" ]; then
289289
cat <<-EOF
290290
[client]

0 commit comments

Comments
 (0)