Browse Source

make h option for targz optional, default is set h option

1.0
Alexander Miehe 10 years ago
parent
commit
4cdb95f3be
  1. 5
      Mage/Task/BuiltIn/Deployment/Strategy/TarGzTask.php

5
Mage/Task/BuiltIn/Deployment/Strategy/TarGzTask.php

@ -77,7 +77,10 @@ class TarGzTask extends BaseStrategyTaskAbstract implements IsReleaseAware
$strategyFlags = ''; $strategyFlags = '';
} }
$command = 'tar cfzh' . $strategyFlags . ' ' . $localTarGz . '.tar.gz ' . $excludeCmd . $excludeFromFileCmd . ' -C ' . $this->getConfig()->deployment('from') . ' .'; // remove h option only if dump_symlinks is allowed in the release config part
$dumpSymlinks = $this->getConfig()->release('dump_symlinks') ? '' : 'h';
$command = 'tar cfz'. $dumpSymlinks . $strategyFlags . ' ' . $localTarGz . '.tar.gz ' . $excludeCmd . $excludeFromFileCmd . ' -C ' . $this->getConfig()->deployment('from') . ' .';
$result = $this->runCommandLocal($command); $result = $this->runCommandLocal($command);
// Strategy Flags // Strategy Flags

Loading…
Cancel
Save