liuxiaolong
2019-12-19 67068d7d2e888a6726ce7f1311d123135224637d
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))