mirror of
https://github.com/hauke68/Magallanes.git
synced 2025-10-13 16:50:18 +02:00
Only tries to guess web server user if none provided with 'group' parameter
This commit is contained in:
parent
fbc50a52bd
commit
5643616e50
@ -29,7 +29,7 @@ class PermissionsReadableOnlyByWebServerTask extends PermissionsTask
|
|||||||
{
|
{
|
||||||
parent::init();
|
parent::init();
|
||||||
|
|
||||||
$this->setGroup($this->getParameter('group', $this->getWebServerUser()))
|
$this->setGroup($this->getParameter('group') ? $this->getParameter('group') : $this->getWebServerUser())
|
||||||
->setRights('040');
|
->setRights('040');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,7 +27,8 @@ use Mage\Task\SkipException;
|
|||||||
class PermissionsTask extends AbstractTask
|
class PermissionsTask extends AbstractTask
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Paths to change of permissions separated by PATH_SEPARATOR.
|
* Paths to change of permissions in an array or a string separated by
|
||||||
|
* PATH_SEPARATOR.
|
||||||
*
|
*
|
||||||
* If the stage is on local host you should give full paths. If on remote
|
* If the stage is on local host you should give full paths. If on remote
|
||||||
* you may give full or relative to the current release directory paths.
|
* you may give full or relative to the current release directory paths.
|
||||||
|
@ -29,7 +29,7 @@ class PermissionsWritableByWebServerTask extends PermissionsTask
|
|||||||
{
|
{
|
||||||
parent::init();
|
parent::init();
|
||||||
|
|
||||||
$this->setGroup($this->getParameter('group', $this->getWebServerUser()))
|
$this->setGroup($this->getParameter('group') ? $this->getParameter('group') : $this->getWebServerUser())
|
||||||
->setRights('g+w');
|
->setRights('g+w');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user