Skip to content

Commit

Permalink
feat: 发布v2.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Oct 14, 2024
1 parent 7ef8fc6 commit 577fb37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions internal/apps/mysql/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ func (s *Service) UpdateConfig(w http.ResponseWriter, r *http.Request) {
return
}

if err := io.Write(app.Root+"/server/mysql/conf/my.cnf", req.Config, 0644); err != nil {
service.Error(w, http.StatusInternalServerError, "写入配置失败")
if err = io.Write(app.Root+"/server/mysql/conf/my.cnf", req.Config, 0644); err != nil {
service.Error(w, http.StatusInternalServerError, "写入配置失败:%v", err)
return
}

if err := systemctl.Reload("mysqld"); err != nil {
service.Error(w, http.StatusInternalServerError, "重载失败")
if err = systemctl.Restart("mysqld"); err != nil {
service.Error(w, http.StatusInternalServerError, "重启失败:%v", err)
return
}

Expand Down
2 changes: 1 addition & 1 deletion internal/bootstrap/conf.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func initConf() {

func initGlobal() {
app.Root = app.Conf.MustString("app.root")
app.Version = "2.3.3"
app.Version = "2.3.4"
app.Locale = app.Conf.MustString("app.locale")

// 初始化时区
Expand Down

0 comments on commit 577fb37

Please sign in to comment.