fix: 更新restagent为omc

This commit is contained in:
TsMask committed 2025-04-01 18:44:35 +08:00
1 parent e02707cd0e
commit 01df7b745b
8 files changed
+12 -12

No files matched your search

+1 -1
View File
@@ -863,7 +863,7 @@ func PostNeServiceAction(w http.ResponseWriter, r *http.Request) {
// send 204 to fe firstly
services.ResponseStatusOK204NoContent(w)
//actionCmd := fmt.Sprintf("sudo %s/bin/omcsvc.sh %s", config.GetYamlConfig().NE.OmcDir, action)
actionCmd := fmt.Sprintf("sudo systemctl %s restagent", action)
actionCmd := fmt.Sprintf("sudo systemctl %s omc", action)
go RunSSHCmd(sshHost, actionCmd)
return
// cmd := exec.Command("ssh", sshHost, actionCmd)