2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 09:13:49 +08:00

fix: lint

This commit is contained in:
耗子
2024-09-27 22:55:12 +08:00
parent 3271557561
commit 73387d114e

View File

@@ -80,7 +80,7 @@ func (s *Service) Load(w http.ResponseWriter, r *http.Request) {
return
}
raw, err := shell.Execf("mysqladmin -uroot -p" + rootPassword + " extended-status 2>&1")
raw, err := shell.Execf(`mysqladmin -u root -p "%s" extended-status 2>&1`, rootPassword)
if err != nil {
service.Error(w, http.StatusInternalServerError, "获取MySQL负载失败")
return