Merge pull request #60 from tonynelson19/patch-1
Only call chown on releases if there's a userGroup
This commit is contained in:
commit
b98082b96f
|
@ -59,14 +59,13 @@ class ReleaseTask extends AbstractTask implements IsReleaseAware, SkipOnOverride
|
||||||
$command .= ' && '
|
$command .= ' && '
|
||||||
. 'chown -h ' . $userGroup . ' ' . $symlink
|
. 'chown -h ' . $userGroup . ' ' . $symlink
|
||||||
. ' && '
|
. ' && '
|
||||||
. 'chown -R ' . $userGroup . ' ' . $currentCopy;
|
. 'chown -R ' . $userGroup . ' ' . $currentCopy
|
||||||
|
. ' && '
|
||||||
|
. 'chown ' . $userGroup . ' ' . $releasesDirectory;
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = $this->runCommandRemote($command);
|
$result = $this->runCommandRemote($command);
|
||||||
|
|
||||||
// Set Directory Releases to same owner
|
|
||||||
$result = $this->runCommandRemote('chown ' . $userGroup . ' ' . $releasesDirectory);
|
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue