Browse Source

Merge pull request #223 from isyndicate/release-task-ownership-fix-042915

resultFetch is always false when owner is specified in config
1.0
Kuba Turek 10 years ago
parent
commit
bbefc65888
  1. 4
      Mage/Task/BuiltIn/Deployment/ReleaseTask.php

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

@ -70,11 +70,10 @@ class ReleaseTask extends AbstractTask implements IsReleaseAware, SkipOnOverride
if (!empty($infoArray[3])) {
$group = $infoArray[3];
}
$userGroup = $user . ':' . $group;
}
$userGroup = $user . ':' . $group;
}
if ($resultFetch && $userGroup != '') {
$command = 'chown -R ' . $userGroup . ' ' . $currentCopy
. ' && '
. 'chown ' . $userGroup . ' ' . $releasesDirectory;
@ -82,7 +81,6 @@ class ReleaseTask extends AbstractTask implements IsReleaseAware, SkipOnOverride
if (!$result) {
return $result;
}
}
// Switch symlink and change owner
$tmplink = $symlink . '.tmp';

Loading…
Cancel
Save