From 85da7684b74d2e7749fa9eb518f703b376904802 Mon Sep 17 00:00:00 2001 From: zhangsz Date: Mon, 16 Jun 2025 16:33:23 +0800 Subject: [PATCH] fix: ... --- features/cm/ne.go | 2 +- features/cm/software.go | 4 ++-- misc/actpkg.sh | 4 ++-- misc/rbkpkg.sh | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/features/cm/ne.go b/features/cm/ne.go index a00dbe92..617563ee 100644 --- a/features/cm/ne.go +++ b/features/cm/ne.go @@ -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/omcsvc.sh %s", config.GetYamlConfig().NE.OmcDir, action) + //actionCmd := fmt.Sprintf("sudo %s/bin/psapsvc.sh %s", config.GetYamlConfig().NE.OmcDir, action) actionCmd := fmt.Sprintf("sudo systemctl %s restagent", action) go RunSSHCmd(sshHost, actionCmd) return diff --git a/features/cm/software.go b/features/cm/software.go index fd873702..ed85bb51 100644 --- a/features/cm/software.go +++ b/features/cm/software.go @@ -794,7 +794,7 @@ func ActiveSoftwareToNF(w http.ResponseWriter, r *http.Request) { // } switch neTypeLower { case "omc": - restartCmd := fmt.Sprintf("sudo %s/bin/omcsvc.sh restart", config.GetYamlConfig().NE.OmcDir) + restartCmd := fmt.Sprintf("sudo %s/bin/psapsvc.sh restart", config.GetYamlConfig().NE.OmcDir) cmd := exec.Command("ssh", sshHost, restartCmd) out, err := cmd.CombinedOutput() log.Tracef("Exec output: %v", string(out)) @@ -997,7 +997,7 @@ func RollBackSoftwareToNF(w http.ResponseWriter, r *http.Request) { // } switch neTypeLower { case "omc": - restartCmd := fmt.Sprintf("sudo %s/bin/omcsvc.sh restart", config.GetYamlConfig().NE.OmcDir) + restartCmd := fmt.Sprintf("sudo %s/bin/psapsvc.sh restart", config.GetYamlConfig().NE.OmcDir) cmd := exec.Command("ssh", sshHost, restartCmd) out, err := cmd.CombinedOutput() log.Tracef("Exec output: %v", string(out)) diff --git a/misc/actpkg.sh b/misc/actpkg.sh index 1a5fb2c9..e9765ecb 100755 --- a/misc/actpkg.sh +++ b/misc/actpkg.sh @@ -27,7 +27,7 @@ case "${extension}" in EOF if [ ${neType} == "OMC" ]; then ${omcBin}/setomc.sh -m upgrade >> ${logFile} - ${omcBin}/omcsvc.sh restart >> ${logFile} + ${omcBin}/psapsvc.sh restart >> ${logFile} fi ;; rpm) @@ -43,7 +43,7 @@ EOF EOF if [ ${neType} == "OMC" ]; then ${omcBin}/setomc.sh -m upgrade >> ${logFile} - ${omcBin}/omcsvc.sh restart >> ${logFile} + ${omcBin}/psapsvc.sh restart >> ${logFile} fi ;; *) diff --git a/misc/rbkpkg.sh b/misc/rbkpkg.sh index ef9b4551..f72b1405 100755 --- a/misc/rbkpkg.sh +++ b/misc/rbkpkg.sh @@ -27,7 +27,7 @@ case "${extension}" in EOF if [ ${neType} == "OMC" ]; then ${omcBin}/setomc.sh -m upgrade >> ${logFile} - ${omcBin}/omcsvc.sh restart >> ${logFile} + ${omcBin}/psapsvc.sh restart >> ${logFile} fi ;; rpm) @@ -43,7 +43,7 @@ EOF EOF if [ ${neType} == "OMC" ]; then ${omcBin}/setomc.sh -m upgrade >> ${logFile} - ${omcBin}/omcsvc.sh restart >> ${logFile} + ${omcBin}/psapsvc.sh restart >> ${logFile} fi ;; *)