Skip to content

Commit b5bc541

Browse files
authored
Merge pull request #291 from kototoyo/master
Garbled characters in the processing of docker-entrypoint-initdb.d
2 parents 36566ba + 7d40b17 commit b5bc541

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

10.1/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ docker_process_sql() {
188188
set -- --database="$MYSQL_DATABASE" "$@"
189189
fi
190190

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

194194
# Initializes database with timezone info and root password, plus optional extra db/user
@@ -258,7 +258,7 @@ docker_setup_db() {
258258
_mysql_passfile() {
259259
# echo the password to the "file" the client uses
260260
# the client command will use process substitution to create a file on the fly
261-
# ie: --defaults-file=<( _mysql_passfile )
261+
# ie: --defaults-extra-file=<( _mysql_passfile )
262262
if [ '--dont-use-mysql-root-password' != "$1" ] && [ -n "$MYSQL_ROOT_PASSWORD" ]; then
263263
cat <<-EOF
264264
[client]

10.2/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ docker_process_sql() {
188188
set -- --database="$MYSQL_DATABASE" "$@"
189189
fi
190190

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

194194
# Initializes database with timezone info and root password, plus optional extra db/user
@@ -258,7 +258,7 @@ docker_setup_db() {
258258
_mysql_passfile() {
259259
# echo the password to the "file" the client uses
260260
# the client command will use process substitution to create a file on the fly
261-
# ie: --defaults-file=<( _mysql_passfile )
261+
# ie: --defaults-extra-file=<( _mysql_passfile )
262262
if [ '--dont-use-mysql-root-password' != "$1" ] && [ -n "$MYSQL_ROOT_PASSWORD" ]; then
263263
cat <<-EOF
264264
[client]

10.3/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ docker_process_sql() {
188188
set -- --database="$MYSQL_DATABASE" "$@"
189189
fi
190190

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

194194
# Initializes database with timezone info and root password, plus optional extra db/user
@@ -258,7 +258,7 @@ docker_setup_db() {
258258
_mysql_passfile() {
259259
# echo the password to the "file" the client uses
260260
# the client command will use process substitution to create a file on the fly
261-
# ie: --defaults-file=<( _mysql_passfile )
261+
# ie: --defaults-extra-file=<( _mysql_passfile )
262262
if [ '--dont-use-mysql-root-password' != "$1" ] && [ -n "$MYSQL_ROOT_PASSWORD" ]; then
263263
cat <<-EOF
264264
[client]

10.4/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ docker_process_sql() {
188188
set -- --database="$MYSQL_DATABASE" "$@"
189189
fi
190190

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

194194
# Initializes database with timezone info and root password, plus optional extra db/user
@@ -258,7 +258,7 @@ docker_setup_db() {
258258
_mysql_passfile() {
259259
# echo the password to the "file" the client uses
260260
# the client command will use process substitution to create a file on the fly
261-
# ie: --defaults-file=<( _mysql_passfile )
261+
# ie: --defaults-extra-file=<( _mysql_passfile )
262262
if [ '--dont-use-mysql-root-password' != "$1" ] && [ -n "$MYSQL_ROOT_PASSWORD" ]; then
263263
cat <<-EOF
264264
[client]

10.5/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ docker_process_sql() {
188188
set -- --database="$MYSQL_DATABASE" "$@"
189189
fi
190190

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

194194
# Initializes database with timezone info and root password, plus optional extra db/user
@@ -258,7 +258,7 @@ docker_setup_db() {
258258
_mysql_passfile() {
259259
# echo the password to the "file" the client uses
260260
# the client command will use process substitution to create a file on the fly
261-
# ie: --defaults-file=<( _mysql_passfile )
261+
# ie: --defaults-extra-file=<( _mysql_passfile )
262262
if [ '--dont-use-mysql-root-password' != "$1" ] && [ -n "$MYSQL_ROOT_PASSWORD" ]; then
263263
cat <<-EOF
264264
[client]

docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ docker_process_sql() {
188188
set -- --database="$MYSQL_DATABASE" "$@"
189189
fi
190190

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

194194
# Initializes database with timezone info and root password, plus optional extra db/user
@@ -258,7 +258,7 @@ docker_setup_db() {
258258
_mysql_passfile() {
259259
# echo the password to the "file" the client uses
260260
# the client command will use process substitution to create a file on the fly
261-
# ie: --defaults-file=<( _mysql_passfile )
261+
# ie: --defaults-extra-file=<( _mysql_passfile )
262262
if [ '--dont-use-mysql-root-password' != "$1" ] && [ -n "$MYSQL_ROOT_PASSWORD" ]; then
263263
cat <<-EOF
264264
[client]

0 commit comments

Comments
 (0)