fix: 网元版本安装OMC升级重启自己

This commit is contained in:
TsMask
2024-06-03 18:27:58 +08:00
parent 8af452872d
commit 44de9009dd
2 changed files with 7 additions and 10 deletions

View File

@@ -183,7 +183,7 @@ func (r *NeLicenseImpl) UploadLicense(neLicense model.NeLicense) error {
if neTypeLower == "ims" {
cmdStr = "sudo ims-stop || true && sudo ims-start"
} else if neTypeLower == "omc" {
cmdStr = "sudo /usr/local/omc/bin/omcsvc.sh restart"
cmdStr = "sudo systemctl restart restagent"
}
sshClient.RunCMD(cmdStr)
}