diff --git a/customer/usr/local/bin/common.sh b/customer/usr/local/bin/common.sh index e699552..6970aff 100644 --- a/customer/usr/local/bin/common.sh +++ b/customer/usr/local/bin/common.sh @@ -168,10 +168,10 @@ app_verify_minimum_env() { } # 检测认证设置。如果不允许匿名登录,检测登录用户名及密码是否设置 -# if is_boolean_yes "$ALLOW_ANONYMOUS_LOGIN"; then -# LOG_W "You have set the environment variable ALLOW_ANONYMOUS_LOGIN=${ALLOW_ANONYMOUS_LOGIN}. For safety reasons, do not use this flag in a production environment." +# if is_boolean_yes "$ALLOW_ANONYMOUS"; then +# LOG_W "You have set the environment variable ALLOW_ANONYMOUS=${ALLOW_ANONYMOUS}. For safety reasons, do not use this flag in a production environment." # elif ! is_boolean_yes "$ZOO_ENABLE_AUTH"; then -# print_validation_error "The ZOO_ENABLE_AUTH environment variable does not configure authentication. Set the environment variable ALLOW_ANONYMOUS_LOGIN=yes to allow unauthenticated users to connect to ZooKeeper." +# print_validation_error "The ZOO_ENABLE_AUTH environment variable does not configure authentication. Set the environment variable ALLOW_ANONYMOUS=yes to allow unauthenticated users to connect to ZooKeeper." # fi # TODO: 其他参数检测