Commit 364e171f authored by 赵啸非's avatar 赵啸非

添加批量激活设备

parent f550f5e7
...@@ -133,12 +133,12 @@ public class AppPublishServiceImpl extends AbstractCRUDServiceImpl<AppPublishDao ...@@ -133,12 +133,12 @@ public class AppPublishServiceImpl extends AbstractCRUDServiceImpl<AppPublishDao
RuntimeUtil.exec("chmod 755 "+scriptPath); RuntimeUtil.exec("chmod 755 "+scriptPath);
this.runSyncCommand(scriptPath); // this.runSyncCommand(scriptPath);
// ProcessBuilder sh = new ProcessBuilder("sh", scriptPath); // ProcessBuilder sh = new ProcessBuilder("sh", scriptPath);
/* ProcessBuilder sh = new ProcessBuilder("sh","deploy.sh"); ProcessBuilder sh = new ProcessBuilder("sh",scriptPath);
File file = new File("/home/temp/" + appPublishEntity.getAppCode() + "/deploy.sh"); File file = new File("/home/temp/" + appPublishEntity.getAppCode() + "/deploy.sh");
asynExeLocalComand(file, sh);*/ asynExeLocalComand(null, sh);
//执行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