docker 环境特殊处理重启
This commit is contained in:
parent
87db58af6a
commit
1260297452
|
@ -92,5 +92,7 @@ public class UpdateUtil {
|
||||||
// String cmd = String.format("cd %s && sh update.sh %s %s", pwd, pwd, updateFilePath, "renren-admin", active);
|
// String cmd = String.format("cd %s && sh update.sh %s %s", pwd, pwd, updateFilePath, "renren-admin", active);
|
||||||
logger.info("执行指令:{}", Arrays.asList(cmd).toString());
|
logger.info("执行指令:{}", Arrays.asList(cmd).toString());
|
||||||
logger.info(RuntimeUtil.execForStr(cmd));
|
logger.info(RuntimeUtil.execForStr(cmd));
|
||||||
|
String[] docker_cmd = {"/bin/sh", "-c", "docker restart renren-admin"};
|
||||||
|
logger.info(RuntimeUtil.execForStr(docker_cmd));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue