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 @@ -73,7 +73,7 @@ docker_process_init_file() {
73
73
echo
74
74
}
75
75
76
- docker_check_config () {
76
+ mysql_check_config () {
77
77
toRun=( " $@ " --verbose --help )
78
78
if ! errors=" $( " ${toRun[@]} " 2>&1 > /dev/null) " ; then
79
79
docker_error " mysqld failed while attempting to check config\n\tcommand was: ${toRun[*]} \n\t$errors "
@@ -260,15 +260,15 @@ docker_main() {
260
260
261
261
# If container is started as root user, restart as dedicated mysql user
262
262
if [ " $( id -u) " = ' 0' ]; then
263
- docker_check_config " $@ "
263
+ mysql_check_config " $@ "
264
264
mkdir -p " $DATADIR "
265
265
chown -R mysql:mysql " $DATADIR "
266
266
docker_note " Switching to dedicated user 'mysql'"
267
267
exec gosu mysql " $BASH_SOURCE " " $@ "
268
268
fi
269
269
270
270
# still need to check config, container may have started with --user
271
- docker_check_config " $@ "
271
+ mysql_check_config " $@ "
272
272
273
273
# If this is true then there's no database, and it needs to be initialized
274
274
if [ ! -d " $DATADIR /mysql" ]; then
You can’t perform that action at this time.
0 commit comments