|
|
@@ -294,6 +294,8 @@ public class Sftp {
|
|
|
Result result = Result.success();
|
|
|
try {
|
|
|
FileUtils.copyFileToDirectory(new File(localDir), new File(remoteDir));
|
|
|
+ log.info("copy files from {} to {} done...", localDir, remoteDir);
|
|
|
+
|
|
|
String command = String.format("cd %s && %s shutdown.sh && %s start.sh", remoteDir, bash, bash);
|
|
|
ShellResult shellResult = shellExecutor.exec(command.split("\\s+"));
|
|
|
int exitCode = shellResult.getExitCode();
|