This commit is contained in:
zhangsz committed 2025-06-17 09:57:21 +08:00
1 parent 26c1fd0950
commit 6de75e18df
3 files changed
+3 -3

No files matched your search

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