chore: 打包程序restagent变更omc

This commit is contained in:
TsMask committed 2024-03-19 20:20:12 +08:00
1 parent a4c71a4d70
commit b01bc44578
84 files changed
+308 -190

No files matched your search

@@ -9,7 +9,7 @@ import (
"nms_cxy/lib/dborm"
"nms_cxy/lib/global"
"nms_cxy/lib/log"
"nms_cxy/restagent/config"
"nms_cxy/omc/config"
"nms_cxy/src/framework/cron"
)
@@ -12,7 +12,7 @@ import (
"nms_cxy/lib/dborm"
"nms_cxy/lib/global"
"nms_cxy/lib/log"
"nms_cxy/restagent/config"
"nms_cxy/omc/config"
"nms_cxy/src/framework/cron"
"github.com/go-resty/resty/v2"
@@ -9,7 +9,7 @@ import (
"nms_cxy/lib/dborm"
"nms_cxy/lib/log"
"nms_cxy/restagent/config"
"nms_cxy/omc/config"
"nms_cxy/src/framework/cron"
"github.com/go-resty/resty/v2"
+1 -1
View File
@@ -241,7 +241,7 @@ func (s *SystemController) RebootApp(c *gin.Context) {
return
}
_, err := cmd.ExecWithCheck("nohup", "sh", "-c", "sleep 2s && service restagent restart", "&")
_, err := cmd.ExecWithCheck("nohup", "sh", "-c", "sleep 2s && service omc restart", "&")
if err != nil {
c.JSON(200, map[string]any{
"requestId": body.RequestId,