Skip to content

Commit

Permalink
Rename docker_verify_env to docker_verify_minimum_env
Browse files Browse the repository at this point in the history
  • Loading branch information
ltangvald authored and yosifkit committed Sep 18, 2019
1 parent 2fcb086 commit 1503220
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .template.Debian/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ docker_stop_server() {
}

# Verify that the minimally required password settings are set for new databases.
docker_verify_env() {
docker_verify_minimum_env() {
if [ -z "$MYSQL_ROOT_PASSWORD" -a -z "$MYSQL_ALLOW_EMPTY_PASSWORD" -a -z "$MYSQL_RANDOM_ROOT_PASSWORD" ]; then
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"
fi
Expand Down Expand Up @@ -272,7 +272,7 @@ docker_main() {

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

Expand Down

0 comments on commit 1503220

Please sign in to comment.