Skip to content

Commit

Permalink
fix: 修复脚本环境配置项替换问题 (#178)
Browse files Browse the repository at this point in the history
* 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: 修复启动脚本配置项错误问题
  • Loading branch information
andrewshan authored May 14, 2024
1 parent 3cfdeb1 commit 216a5f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions polaris-agent-build/bin/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 216a5f0

Please sign in to comment.