mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-05-04 23:13:16 +02:00
Double timeout for tar archive scp copy instead of adding +300s.
This commit is contained in:
parent
8baa1a01fd
commit
612e71e451
|
@ -57,7 +57,7 @@ class CopyTask extends AbstractTask
|
|||
$process = $this->runtime->runLocalCommand($cmdCopy, $timeout);
|
||||
if ($process->isSuccessful()) {
|
||||
$cmdUnTar = sprintf('cd %s && %s %s %s', $targetDir, $tarPath, $flags, $tarRemote);
|
||||
$process = $this->runtime->runRemoteCommand($cmdUnTar, false, $timeout + 300);
|
||||
$process = $this->runtime->runRemoteCommand($cmdUnTar, false, $timeout * 2);
|
||||
if ($process->isSuccessful()) {
|
||||
$cmdDelete = sprintf('rm %s/%s', $targetDir, $tarRemote);
|
||||
$process = $this->runtime->runRemoteCommand($cmdDelete, false);
|
||||
|
|
Loading…
Reference in a new issue