liuxiaolong
2019-12-19 67068d7d2e888a6726ce7f1311d123135224637d
fix updatePatch,add &
1个文件已修改
2 ■■■ 已修改文件
service/SysService.go 2 ●●● 补丁 | 查看 | 原始文档 | 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))