Skip to content

Commit 1df2b15

Browse files
committed
entrypoint: user update, forgot to stage --skip-auth-anonymous-user
1 parent a2fa641 commit 1df2b15

File tree

8 files changed

+24
-0
lines changed

8 files changed

+24
-0
lines changed

10.2/docker-entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ docker_init_database_dir() {
191191
if { mysql_install_db --help || :; } | grep -q -- '--skip-test-db'; then
192192
# 10.3+
193193
installArgs+=( --skip-test-db )
194+
else
195+
# 10.2 only
196+
installArgs+=( --skip-auth-anonymous-user )
194197
fi
195198
# "Other options are passed to mysqld." (so we pass all "mysqld" arguments directly here)
196199
mysql_install_db "${installArgs[@]}" "${@:2}" --default-time-zone=SYSTEM --enforce-storage-engine= --skip-log-bin

10.3/docker-entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ docker_init_database_dir() {
191191
if { mysql_install_db --help || :; } | grep -q -- '--skip-test-db'; then
192192
# 10.3+
193193
installArgs+=( --skip-test-db )
194+
else
195+
# 10.2 only
196+
installArgs+=( --skip-auth-anonymous-user )
194197
fi
195198
# "Other options are passed to mysqld." (so we pass all "mysqld" arguments directly here)
196199
mysql_install_db "${installArgs[@]}" "${@:2}" --default-time-zone=SYSTEM --enforce-storage-engine= --skip-log-bin

10.4/docker-entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ docker_init_database_dir() {
191191
if { mysql_install_db --help || :; } | grep -q -- '--skip-test-db'; then
192192
# 10.3+
193193
installArgs+=( --skip-test-db )
194+
else
195+
# 10.2 only
196+
installArgs+=( --skip-auth-anonymous-user )
194197
fi
195198
# "Other options are passed to mysqld." (so we pass all "mysqld" arguments directly here)
196199
mysql_install_db "${installArgs[@]}" "${@:2}" --default-time-zone=SYSTEM --enforce-storage-engine= --skip-log-bin

10.5/docker-entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ docker_init_database_dir() {
191191
if { mysql_install_db --help || :; } | grep -q -- '--skip-test-db'; then
192192
# 10.3+
193193
installArgs+=( --skip-test-db )
194+
else
195+
# 10.2 only
196+
installArgs+=( --skip-auth-anonymous-user )
194197
fi
195198
# "Other options are passed to mysqld." (so we pass all "mysqld" arguments directly here)
196199
mysql_install_db "${installArgs[@]}" "${@:2}" --default-time-zone=SYSTEM --enforce-storage-engine= --skip-log-bin

10.6/docker-entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ docker_init_database_dir() {
191191
if { mariadb-install-db --help || :; } | grep -q -- '--skip-test-db'; then
192192
# 10.3+
193193
installArgs+=( --skip-test-db )
194+
else
195+
# 10.2 only
196+
installArgs+=( --skip-auth-anonymous-user )
194197
fi
195198
# "Other options are passed to mariadbd." (so we pass all "mysqld" arguments directly here)
196199
mariadb-install-db "${installArgs[@]}" "${@:2}" --default-time-zone=SYSTEM --enforce-storage-engine= --skip-log-bin

10.7/docker-entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ docker_init_database_dir() {
191191
if { mariadb-install-db --help || :; } | grep -q -- '--skip-test-db'; then
192192
# 10.3+
193193
installArgs+=( --skip-test-db )
194+
else
195+
# 10.2 only
196+
installArgs+=( --skip-auth-anonymous-user )
194197
fi
195198
# "Other options are passed to mariadbd." (so we pass all "mysqld" arguments directly here)
196199
mariadb-install-db "${installArgs[@]}" "${@:2}" --default-time-zone=SYSTEM --enforce-storage-engine= --skip-log-bin

10.8/docker-entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ docker_init_database_dir() {
191191
if { mariadb-install-db --help || :; } | grep -q -- '--skip-test-db'; then
192192
# 10.3+
193193
installArgs+=( --skip-test-db )
194+
else
195+
# 10.2 only
196+
installArgs+=( --skip-auth-anonymous-user )
194197
fi
195198
# "Other options are passed to mariadbd." (so we pass all "mysqld" arguments directly here)
196199
mariadb-install-db "${installArgs[@]}" "${@:2}" --default-time-zone=SYSTEM --enforce-storage-engine= --skip-log-bin

docker-entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ docker_init_database_dir() {
191191
if { mysql_install_db --help || :; } | grep -q -- '--skip-test-db'; then
192192
# 10.3+
193193
installArgs+=( --skip-test-db )
194+
else
195+
# 10.2 only
196+
installArgs+=( --skip-auth-anonymous-user )
194197
fi
195198
# "Other options are passed to mysqld." (so we pass all "mysqld" arguments directly here)
196199
mysql_install_db "${installArgs[@]}" "${@:2}" --default-time-zone=SYSTEM --enforce-storage-engine= --skip-log-bin

0 commit comments

Comments
 (0)