chore: 打包程序restagent变更omc
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user