Browse Source

Issue #72

Add -h option to tar command deployment strategy.

     -h, --dereference
           follow symlinks; archive and dump the files they point to
1.0
Andrés Montañez 10 years ago
parent
commit
7e2d7d4e57
  1. 2
      Mage/Task/BuiltIn/Deployment/Strategy/TarGzTask.php

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

@ -67,7 +67,7 @@ class TarGzTask extends BaseStrategyTaskAbstract implements IsReleaseAware
$excludeCmd .= ' --exclude=' . $excludeFile;
}
$command = 'tar cfz ' . $localTarGz . '.tar.gz ' . $excludeCmd . ' -C ' . $this->getConfig()->deployment('from') . ' .';
$command = 'tar cfzh ' . $localTarGz . '.tar.gz ' . $excludeCmd . ' -C ' . $this->getConfig()->deployment('from') . ' .';
$result = $this->runCommandLocal($command);
// Copy Tar Gz to Remote Host

Loading…
Cancel
Save