Skip to content

Commit

Permalink
When installing framework slave, if db_tars has not been created, exit
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanshudong committed Sep 19, 2020
1 parent 0440ce6 commit 9a45325
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Changelist.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
- tarsAdminRegistry supports only historical publishing records (the latest 200 by default), and the configuration can be modified in the template
- tarsAdminRegistry supports patch timeout configuration, which can be modified in the template
- Support parameters during deployment, covering configuration files and templates
- When installing framework slave, if db_tars has not been created, exit

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

## v2.4.6 2020.09.02
### en
Expand Down
6 changes: 6 additions & 0 deletions deploy/tars-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,12 @@ if [ "${SLAVE}" != "true" ]; then
LOG_INFO "create master servers";

exec_mysql_sql db_tars tars_servers_master.sql
else
exec_mysql_has "db_tars"
if [ $? != 0 ]; then
LOG_ERROR "no db_tars exists, please install master first, install will exit"
exit 1
fi
fi

#current server info
Expand Down

0 comments on commit 9a45325

Please sign in to comment.