service/SysService.go | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
service/SysService.go
@@ -218,7 +218,7 @@ } //2.更新系统 var cmd *exec.Cmd updateCmd := fmt.Sprintf("setsid ./updatePatch.sh %s %s %s",unZipPath,zipFilePath,configPatchPath+"/"+identifier) updateCmd := fmt.Sprintf("./updatePatch.sh %s %s %s &",unZipPath,zipFilePath,configPatchPath+"/"+identifier) cmd = exec.Command("/bin/sh","-c", updateCmd) if b, err := cmd.Output(); err != nil { logger.Debug("updatePatch err:",err,"result:",string(b))