diff --git a/packages/brick-container/deploy/install_postscript.sh b/packages/brick-container/deploy/install_postscript.sh index 218ac275d9..9cce3c10b8 100644 --- a/packages/brick-container/deploy/install_postscript.sh +++ b/packages/brick-container/deploy/install_postscript.sh @@ -12,15 +12,11 @@ config_tool="${deploy_init_path}/tools/config_tool" export LD_LIBRARY_PATH=/usr/local/easyops/ens_client/sdk:${LD_LIBRARY_PATH} - -value=$(${config_tool} get --appID "deploy_init" --namespaceName "common" --key "check_auth_token.enable") -if [[ ${value} == "true" ]]; then - # 初始化默认命名空间,并生成 clientId 和 secret - ${config_tool} init -f "${install_path}/conf/config.yaml" - if [[ $? -ne 0 ]];then - echo "import brick_next_v3 config namespace error, exit" - exit 1 - fi +# 初始化默认命名空间,并生成 clientId 和 secret +${config_tool} init -f "${install_path}/conf/config.yaml" +if [[ $? -ne 0 ]];then + echo "import brick_next config namespace error, exit" + exit 1 fi diff --git a/packages/brick-container/deploy/update_postscript.sh b/packages/brick-container/deploy/update_postscript.sh index 98d33f8fac..536929c308 100644 --- a/packages/brick-container/deploy/update_postscript.sh +++ b/packages/brick-container/deploy/update_postscript.sh @@ -57,15 +57,11 @@ if [[ ${org}X == X ]]; then [[ $? -ne 0 ]] && echo "get org error, exit" && exit 1 fi - -value=$(${config_tool} get --appID "deploy_init" --namespaceName "common" --key "check_auth_token.enable") -if [[ ${value} == "true" ]]; then - # 初始化默认命名空间,并生成 clientId 和 secret - ${config_tool} init -f "${install_path}/conf/config.yaml" - if [[ $? -ne 0 ]];then - echo "import brick_next_v3 config namespace error, exit" - exit 1 - fi +# 初始化默认命名空间,并生成 clientId 和 secret +${config_tool} init -f "${install_path}/conf/config.yaml" +if [[ $? -ne 0 ]];then + echo "import brick_next config namespace error, exit" + exit 1 fi