diff --git a/renren-admin/src/main/java/io/renren/common/utils/UpdateUtil.java b/renren-admin/src/main/java/io/renren/common/utils/UpdateUtil.java index e155cc55..2719c7b3 100644 --- a/renren-admin/src/main/java/io/renren/common/utils/UpdateUtil.java +++ b/renren-admin/src/main/java/io/renren/common/utils/UpdateUtil.java @@ -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)); } }