mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-09-03 03:38:57 +02:00
Merge branch 'master' into develop
This commit is contained in:
@@ -133,9 +133,11 @@ class RollbackTask extends AbstractTask implements IsReleaseAware
|
||||
|
||||
$userGroup = '';
|
||||
$resultFetch = $this->runCommandRemote('ls -ld ' . $rollbackTo . ' | awk \'{print \$3":"\$4}\'', $userGroup);
|
||||
$command = 'rm -f ' . $symlink
|
||||
|
||||
$tmplink = $rollbackTo . '.tmp';
|
||||
$command = 'ln -sfn ' . $currentCopy . ' ' . $tmplink
|
||||
. ' && '
|
||||
. 'ln -sf ' . $rollbackTo . ' ' . $symlink;
|
||||
. 'mv -T ' . $tmplink . ' ' . $symlink;
|
||||
|
||||
if ($resultFetch) {
|
||||
$command .= ' && chown -h ' . $userGroup . ' ' . $symlink;
|
||||
|
||||
Reference in New Issue
Block a user