2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-07 16:47:14 +08:00

feat: 优化 supervisor 配置保存

This commit is contained in:
耗子
2023-11-23 22:37:21 +08:00
parent 468b20348a
commit f900ada2c6

View File

@@ -302,9 +302,7 @@ func (r *SupervisorController) SaveProcessConfig(ctx http.Context) http.Response
if out, err := tools.Exec(`supervisorctl update`); err != nil {
return controllers.Error(ctx, http.StatusInternalServerError, out)
}
if out, err := tools.Exec(`supervisorctl start ` + process); err != nil {
return controllers.Error(ctx, http.StatusInternalServerError, out)
}
_, _ = tools.Exec(`supervisorctl restart ` + process)
return controllers.Success(ctx, nil)
}