liuxiaolong
2019-12-20 eda082b08262171fe406d95ad4db8784fa7e5451
service/SysService.go
@@ -260,7 +260,7 @@
   //判断更新包里是否有补丁脚本,如果有则执行,否则执行updatePatch.sh
   updateCmd := fmt.Sprintf("./updatePatch.sh %s %s %s &",unZipPath,zipFilePath,configPatchPath+"/"+identifier)
   if util.Exists(unZipPath+"upgrade.sh") {
      updateCmd = fmt.Sprintf("%supgrade.sh %s %s %s &",unZipPath,unZipPath,zipFilePath,configPatchPath+"/"+identifier)
      updateCmd = fmt.Sprintf("%supgrade.sh %s %s %s",unZipPath,unZipPath,zipFilePath,configPatchPath+"/"+identifier)
   }
   //2.更新系统
   b,err := ExecCmd(updateCmd)