Merge pull request #208 from KillerDiller/develop

don’t fail the initial deployment to a target, and allow ssh without a username
This commit is contained in:
Kuba Turek
2015-03-24 11:56:04 +01:00
4 changed files with 17 additions and 15 deletions
+5 -7
View File
@@ -138,14 +138,12 @@ class RollbackTask extends AbstractTask implements IsReleaseAware
$userGroup = '';
$resultFetch = $this->runCommandRemote('ls -ld ' . $rollbackTo . ' | awk \'{print \$3":"\$4}\'', $userGroup);
$tmplink = $rollbackTo . '.tmp';
$command = 'ln -sfn ' . $currentCopy . ' ' . $tmplink
. ' && '
. 'mv -T ' . $tmplink . ' ' . $symlink;
if ($resultFetch) {
$command .= ' && chown -h ' . $userGroup . ' ' . $symlink;
$tmplink = $symlink . '.tmp';
$command = "ln -sfn {$currentCopy} {$tmplink}";
if ($resultFetch && $userGroup) {
$command .= " && chown -h {$userGroup} ${tmplink}";
}
$command .= " && mv -T {$tmplink} {$symlink}";
$result = $this->runCommandRemote($command);