File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ mysql_check_config() {
83
83
# Fetch value from server config
84
84
# We use mysqld --verbose --help instead of my_print_defaults because the
85
85
# latter only show values present in config files, and not server defaults
86
- docker_get_config () {
86
+ mysql_get_config () {
87
87
local conf=" $1 " ; shift
88
88
" $@ " --verbose --help --log-bin-index=" $( mktemp -u) " 2> /dev/null \
89
89
| awk ' $1 == "' " $conf " ' " && /^[^ \t]/ { sub(/^[^ \t]+[ \t]+/, ""); print; exit }'
@@ -150,8 +150,8 @@ docker_init_database_dir() {
150
150
# Loads various settings that are used elsewhere in the script
151
151
docker_init_env () {
152
152
# Get config
153
- DATADIR=" $( docker_get_config ' datadir' " $@ " ) "
154
- SOCKET=" $( docker_get_config ' socket' " $@ " ) "
153
+ DATADIR=" $( mysql_get_config ' datadir' " $@ " ) "
154
+ SOCKET=" $( mysql_get_config ' socket' " $@ " ) "
155
155
156
156
# We create a file to store the root password in so we don''t use it on the command line
157
157
TMPDIR=" $( mktemp -d) "
You can’t perform that action at this time.
0 commit comments