[Nostromo] TarGz, do not preserve owner but do preserve modes

This commit is contained in:
Andrés Montañez
2017-01-12 23:22:04 -03:00
parent 12f07aecef
commit 22576d082f
4 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ class CopyTask extends AbstractTask
/** @var Process $process */
$process = $this->runtime->runLocalCommand($cmdCopy, 300);
if ($process->isSuccessful()) {
$cmdUnTar = sprintf('cd %s && tar xfz %s', $targetDir, $tarGzRemote);
$cmdUnTar = sprintf('cd %s && tar xfzop %s', $targetDir, $tarGzRemote);
$process = $this->runtime->runRemoteCommand($cmdUnTar, false, 600);
if ($process->isSuccessful()) {
$cmdDelete = sprintf('rm %s/%s', $targetDir, $tarGzRemote);
@@ -41,7 +41,7 @@ class PrepareTask extends AbstractTask
$this->runtime->setVar('targz_local', $tarGzLocal);
$excludes = $this->getExcludes();
$cmdTarGz = sprintf('tar cfz %s %s ./', $tarGzLocal, $excludes);
$cmdTarGz = sprintf('tar cfzop %s %s ./', $tarGzLocal, $excludes);
/** @var Process $process */
$process = $this->runtime->runLocalCommand($cmdTarGz, 300);