From d232ca5cbdb43b5d1281bc0335ce04adab7870ca Mon Sep 17 00:00:00 2001 From: 554325746@qq.com <554325746@qq.com> Date: 星期三, 18 十二月 2019 16:30:53 +0800 Subject: [PATCH] add mergeAll.sh and +x --- service/SysService.go | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/service/SysService.go b/service/SysService.go index aff3d33..5b6b985 100644 --- a/service/SysService.go +++ b/service/SysService.go @@ -179,8 +179,9 @@ } //2.鏇存柊绯荤粺 var cmd *exec.Cmd - cmd = exec.Command("/bin/sh","-c",fmt.Sprintf("./updatePatch.sh %s",unZipPath)) - logger.Debug("called sh updatePatch.sh ", unZipPath) + updateCmd := fmt.Sprintf("setsid updatePatch.sh %s",unZipPath) + cmd = exec.Command("/bin/sh","-c", updateCmd) + logger.Debug("called sh updatePatch.sh,updateCmd:",updateCmd) if b, err := cmd.Output(); err != nil { logger.Debug("updatePatch err:",err,"result:",string(b)) return false -- Gitblit v1.8.0