Cleanup for SensioLabs Insights.

This commit is contained in:
Andrés Montañez
2013-12-19 15:37:26 -02:00
parent 2220b2fef5
commit 0f17468553
9 changed files with 34 additions and 22 deletions
+6 -3
View File
@@ -138,9 +138,12 @@ class RollbackTask extends AbstractTask implements IsReleaseAware
$resultFetch = $this->runCommandRemote('ls -ld ' . $rollbackTo . ' | awk \'{print \$3":"\$4}\'', $userGroup);
$command = 'rm -f ' . $symlink
. ' && '
. 'ln -sf ' . $rollbackTo . ' ' . $symlink
. ' && '
. 'chown -h ' . $userGroup . ' ' . $symlink;
. 'ln -sf ' . $rollbackTo . ' ' . $symlink;
if ($resultFetch) {
$command .= ' && chown -h ' . $userGroup . ' ' . $symlink;
}
$result = $this->runCommandRemote($command);
if ($result) {