Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions packages/brick-container/deploy/install_postscript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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


14 changes: 5 additions & 9 deletions packages/brick-container/deploy/update_postscript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down