Skip to content

Commit 577fb37

Browse files
committed
feat: 发布v2.3.4
1 parent 7ef8fc6 commit 577fb37

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

internal/apps/mysql/service.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ func (s *Service) UpdateConfig(w http.ResponseWriter, r *http.Request) {
4949
return
5050
}
5151

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

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

internal/bootstrap/conf.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func initConf() {
2626

2727
func initGlobal() {
2828
app.Root = app.Conf.MustString("app.root")
29-
app.Version = "2.3.3"
29+
app.Version = "2.3.4"
3030
app.Locale = app.Conf.MustString("app.locale")
3131

3232
// 初始化时区

0 commit comments

Comments
 (0)