Skip to content

Commit

Permalink
Merge pull request andres-montanez#223 from isyndicate/release-task-o…
Browse files Browse the repository at this point in the history
…wnership-fix-042915

resultFetch is always false when owner is specified in config
  • Loading branch information
eps90 committed May 5, 2015
2 parents 5bc6a0d + a3219e8 commit bbefc65
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions Mage/Task/BuiltIn/Deployment/ReleaseTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,16 @@ public function run()
if (!empty($infoArray[3])) {
$group = $infoArray[3];
}
$userGroup = $user . ':' . $group;
}
$userGroup = $user . ':' . $group;
}

if ($resultFetch && $userGroup != '') {
$command = 'chown -R ' . $userGroup . ' ' . $currentCopy
. ' && '
. 'chown ' . $userGroup . ' ' . $releasesDirectory;
$result = $this->runCommandRemote($command);
if (!$result) {
return $result;
}
$command = 'chown -R ' . $userGroup . ' ' . $currentCopy
. ' && '
. 'chown ' . $userGroup . ' ' . $releasesDirectory;
$result = $this->runCommandRemote($command);
if (!$result) {
return $result;
}

// Switch symlink and change owner
Expand Down

0 comments on commit bbefc65

Please sign in to comment.