mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-06-02 22:02:16 +02:00
Adds PermissionsWritableByApache task that extends Permissions task we predefined parameters
This commit is contained in:
parent
d2b7e0e94f
commit
8247b15ad0
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
namespace Mage\Task\BuiltIn\Filesystem;
|
||||
|
||||
/**
|
||||
* Task for giving Apache write permissions on given paths.
|
||||
*
|
||||
* @author Jérémy Huet <jeremy.huet@gmail.com>
|
||||
*/
|
||||
class PermissionsWritableByApacheTask extends PermissionsTask
|
||||
{
|
||||
public function init()
|
||||
{
|
||||
parent::init();
|
||||
|
||||
$this->setGroup('www-data')
|
||||
->setRights('775');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return "Gives write permissions to Apache user for given paths [built-in]";
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue