style: 用户类型sys更新为System

This commit is contained in:
TsMask
2025-08-15 18:50:11 +08:00
parent a9be1dcf6c
commit 06209878a3
2 changed files with 4 additions and 3 deletions

View File

@@ -426,9 +426,10 @@ func (s *NeActionController) Service(c *gin.Context) {
neTypeLower := strings.ToLower(neInfo.NeType)
cmdStr := fmt.Sprintf("sudo systemctl %s %s", body.Action, neTypeLower)
if neTypeLower == "omc" {
switch neTypeLower {
case "omc":
cmdStr = fmt.Sprintf("nohup sh -c \"sudo systemctl stop omc && sleep 5s && sudo systemctl %s omc\" > /dev/null 2>&1 &", body.Action)
} else if neTypeLower == "ims" {
case "ims":
if body.Action == "restart" {
cmdStr = "ims-stop || true && ims-start"
} else {