Commit c39f0647 authored by 赵啸非's avatar 赵啸非

添加批量激活设备

parent 03189e3d
...@@ -121,7 +121,7 @@ public class AppPublishServiceImpl extends AbstractCRUDServiceImpl<AppPublishDao ...@@ -121,7 +121,7 @@ public class AppPublishServiceImpl extends AbstractCRUDServiceImpl<AppPublishDao
} catch (Exception e) { } catch (Exception e) {
log.error("异常", e); log.error("异常", e);
} }
String disPath = "/home/temp/" + appPublishEntity.getAppCode(); String disPath = "/home/temp/";
ZipUtil.unzip(targetFilePath, disPath, Charset.forName(fileEncode)); ZipUtil.unzip(targetFilePath, disPath, Charset.forName(fileEncode));
//执行sh发布脚本 //执行sh发布脚本
RuntimeUtil.exec("/bin/sh /home/temp/"+appPublishEntity.getAppCode()+"/deploy.sh"); RuntimeUtil.exec("/bin/sh /home/temp/"+appPublishEntity.getAppCode()+"/deploy.sh");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment