docker 环境特殊处理重启

This commit is contained in:
wangliwen 2022-11-09 13:49:01 +08:00
parent 87db58af6a
commit 1260297452
1 changed files with 2 additions and 0 deletions

View File

@ -92,5 +92,7 @@ public class UpdateUtil {
// 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(RuntimeUtil.execForStr(cmd));
String[] docker_cmd = {"/bin/sh", "-c", "docker restart renren-admin"};
logger.info(RuntimeUtil.execForStr(docker_cmd));
}
}