Skip to content

Commit 9a45325

Browse files
committed
When installing framework slave, if db_tars has not been created, exit
1 parent 0440ce6 commit 9a45325

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Changelist.md

+2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
- tarsAdminRegistry supports only historical publishing records (the latest 200 by default), and the configuration can be modified in the template
66
- tarsAdminRegistry supports patch timeout configuration, which can be modified in the template
77
- Support parameters during deployment, covering configuration files and templates
8+
- When installing framework slave, if db_tars has not been created, exit
89

910
### cn
1011
- 完善部署脚本, 支持overwrite模式, 覆盖配置和模板文件
1112
- tarsAdminRegistry支持保存历史发布记录(每个服务缺省200条), 可以在模板中修改配置
1213
- tarsAdminRegistry发布支持超时配置, 可以在模板中修改配置
1314
- 部署时支持参数, 覆盖配置文件和模板
15+
- 安装framework slave时, 如果db_tars还没有创建, 则退出
1416

1517
## v2.4.6 2020.09.02
1618
### en

deploy/tars-install.sh

+6
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,12 @@ if [ "${SLAVE}" != "true" ]; then
471471
LOG_INFO "create master servers";
472472

473473
exec_mysql_sql db_tars tars_servers_master.sql
474+
else
475+
exec_mysql_has "db_tars"
476+
if [ $? != 0 ]; then
477+
LOG_ERROR "no db_tars exists, please install master first, install will exit"
478+
exit 1
479+
fi
474480
fi
475481

476482
#current server info

0 commit comments

Comments
 (0)