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

添加批量激活设备

parent ac2eb24b
package com.mortals.xhx.module.app.service.impl;
import cn.hutool.core.io.FileUtil;
import cn.hutool.core.util.RuntimeUtil;
import cn.hutool.core.util.ZipUtil;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
......@@ -129,6 +130,9 @@ public class AppPublishServiceImpl extends AbstractCRUDServiceImpl<AppPublishDao
String scriptPath = "/home/temp/" + appPublishEntity.getAppCode() + "/deploy.sh";
RuntimeUtil.exec("chmod 755 "+scriptPath);
this.runSyncCommand(scriptPath);
// ProcessBuilder sh = new ProcessBuilder("sh", scriptPath);
......
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