|
@@ -57,7 +57,7 @@ public class OpsServiceImpl implements OpsService {
|
|
|
log.info("zip保存路径:{}", outPath);
|
|
|
String cmd = CmdConstant.zip;
|
|
|
cmd = cmd.replaceAll("@output", outPath);
|
|
|
- cmd = cmd.replaceAll("@inDir", configConstant.serverBasePath);
|
|
|
+ cmd = cmd.replaceAll("@inDir", configConstant.serverBasePath + "/work");
|
|
|
cmd = cmd.replaceAll("@code", ids);
|
|
|
|
|
|
CmdUtils.callShell(cmd);
|
|
@@ -88,7 +88,7 @@ public class OpsServiceImpl implements OpsService {
|
|
|
log.info("zip保存路径:{}", outPath);
|
|
|
String cmd = CmdConstant.zip;
|
|
|
cmd = cmd.replaceAll("@output", outPath);
|
|
|
- cmd = cmd.replaceAll("@inDir", configConstant.serverBasePath + "/work");
|
|
|
+ cmd = cmd.replaceAll("@inDir", configConstant.serverBasePath );
|
|
|
cmd = cmd.replaceAll("@code", dirCode);
|
|
|
|
|
|
CmdUtils.callShell(cmd);
|