From 216a5f036d682f17d0fe505594a25cd7a403627a Mon Sep 17 00:00:00 2001 From: andrew shan <45474304+andrewshan@users.noreply.github.com> Date: Tue, 14 May 2024 10:18:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E9=85=8D=E7=BD=AE=E9=A1=B9=E6=9B=BF=E6=8D=A2?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#178)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: optimize the discovery inject logic and fix nacos config not working issue * feat: 删除无用的导入 * feat: 增加actuator到demo中 * fix: add lossless healthcheck for example * fix: add configuration comments * fix: 修复事件日志不输出的问题 * release: release version to 1.7.0-RC1 * feat: new add java agent for hoxton * feat: support service registry and config * feat: refrator all inject logics into BeanInjector * feat: add gray release example & dispatch bean register into plugins * feat: add environment parameter to obtain the configuration * feat: 增加元数据传输相关拦截器 * feat: 调整example打包脚本 * fix: 修复脚本没法跳转的问题 * fix: 修正样例的配置文件 * fix: 修复熔断无法加载的问题 * fix: 更新北极星的版本号依赖 * fix: 调整版本依赖 * feat:对齐deployment与application中的服务名定义 * feat: optimize default-plugin.conf to load once per lifecyle * feat: 优化日志打印,增加polarisLoggingApplicationListener的配置 * fix: 修复启动脚本配置项错误问题 --- polaris-agent-build/bin/start.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/polaris-agent-build/bin/start.sh b/polaris-agent-build/bin/start.sh index c18cfe36..e20d5ace 100644 --- a/polaris-agent-build/bin/start.sh +++ b/polaris-agent-build/bin/start.sh @@ -43,13 +43,13 @@ region="$(curl -s --connect-timeout 10 -m 10 http://metadata.tencentyun.com/late region_code=$? echo "region is ${region}, return code is ${region_code}" if [ ${region_code} -eq 0 ] && [ -n ${region} ]; then - sed -i "s/spring.cloud.tencent.metadata.content.region=\"\"/spring.cloud.tencent.metadata.content.zone=${region}/g" ${target_config_file} + sed -i "s/spring.cloud.tencent.metadata.content.zone=\"\"/spring.cloud.tencent.metadata.content.zone=${region}/g" ${target_config_file} fi echo "start to fetch zone" zone="$(curl -s --connect-timeout 10 -m 10 http://metadata.tencentyun.com/latest/meta-data/placement/zone)" zone_code=$? -echo "region is ${zone}, return code is ${zone_code}" +echo "zone is ${zone}, return code is ${zone_code}" if [ ${zone_code} -eq 0 ] && [ -n ${zone} ]; then - sed -i "s/spring.cloud.tencent.metadata.content.zone=\"\"/spring.cloud.tencent.metadata.content.campus=${zone}/g" ${target_config_file} + sed -i "s/spring.cloud.tencent.metadata.content.campus=\"\"/spring.cloud.tencent.metadata.content.campus=${zone}/g" ${target_config_file} fi \ No newline at end of file