Skip to content

Commit 1503220

Browse files
ltangvaldyosifkit
authored andcommitted
Rename docker_verify_env to docker_verify_minimum_env
1 parent 2fcb086 commit 1503220

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.template.Debian/docker-entrypoint.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ docker_stop_server() {
125125
}
126126

127127
# Verify that the minimally required password settings are set for new databases.
128-
docker_verify_env() {
128+
docker_verify_minimum_env() {
129129
if [ -z "$MYSQL_ROOT_PASSWORD" -a -z "$MYSQL_ALLOW_EMPTY_PASSWORD" -a -z "$MYSQL_RANDOM_ROOT_PASSWORD" ]; then
130130
docker_error "Database is uninitialized and password option is not specified \n\tYou need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD"
131131
fi
@@ -272,7 +272,7 @@ docker_main() {
272272

273273
# If this is true then there's no database, and it needs to be initialized
274274
if [ ! -d "$DATADIR/mysql" ]; then
275-
docker_verify_env
275+
docker_verify_minimum_env
276276
docker_init_database_dir "$@"
277277
docker_init_client_command
278278

0 commit comments

Comments
 (0)