mirror of
https://github.com/hauke68/Magallanes.git
synced 2025-09-16 13:50:17 +02:00
Default userGroup to 33:33. Removing extra condition.
This commit is contained in:
parent
6f1bd5c0cc
commit
a3219e8f68
@ -70,11 +70,10 @@ class ReleaseTask extends AbstractTask implements IsReleaseAware, SkipOnOverride
|
|||||||
if (!empty($infoArray[3])) {
|
if (!empty($infoArray[3])) {
|
||||||
$group = $infoArray[3];
|
$group = $infoArray[3];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$userGroup = $user . ':' . $group;
|
$userGroup = $user . ':' . $group;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if ($userGroup != '') {
|
|
||||||
$command = 'chown -R ' . $userGroup . ' ' . $currentCopy
|
$command = 'chown -R ' . $userGroup . ' ' . $currentCopy
|
||||||
. ' && '
|
. ' && '
|
||||||
. 'chown ' . $userGroup . ' ' . $releasesDirectory;
|
. 'chown ' . $userGroup . ' ' . $releasesDirectory;
|
||||||
@ -82,7 +81,6 @@ class ReleaseTask extends AbstractTask implements IsReleaseAware, SkipOnOverride
|
|||||||
if (!$result) {
|
if (!$result) {
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Switch symlink and change owner
|
// Switch symlink and change owner
|
||||||
$tmplink = $symlink . '.tmp';
|
$tmplink = $symlink . '.tmp';
|
||||||
|
Loading…
Reference in New Issue
Block a user