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