Browse Source

Change "current" symlink owner only if it exists

1.0
spongeben 10 years ago
parent
commit
aab71eceac
  1. 9
      Mage/Task/BuiltIn/Deployment/ReleaseTask.php

9
Mage/Task/BuiltIn/Deployment/ReleaseTask.php

@ -74,12 +74,13 @@ class ReleaseTask extends AbstractTask implements IsReleaseAware, SkipOnOverride
}
}
if ($resultFetch && $userGroup != '') {
$command = 'chown -h ' . $userGroup . ' ' . $symlink
. ' && '
. 'chown -R ' . $userGroup . ' ' . $currentCopy
if ($resultFetch && $userGroup != '') {
$command = 'chown -R ' . $userGroup . ' ' . $currentCopy
. ' && '
. 'chown ' . $userGroup . ' ' . $releasesDirectory;
if (file_exists($symlink)) {
$command.= ' && ' . 'chown -h ' . $userGroup . ' ' . $symlink;
}
$result = $this->runCommandRemote($command);
if (!$result) {
return $result;

Loading…
Cancel
Save