From 8247b15ad009c213e26488825460aaa3aa8f12f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Huet?= Date: Sat, 13 Dec 2014 13:59:57 +0100 Subject: [PATCH] Adds PermissionsWritableByApache task that extends Permissions task we predefined parameters --- .../PermissionsWritableByApacheTask.php | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Mage/Task/BuiltIn/Filesystem/PermissionsWritableByApacheTask.php diff --git a/Mage/Task/BuiltIn/Filesystem/PermissionsWritableByApacheTask.php b/Mage/Task/BuiltIn/Filesystem/PermissionsWritableByApacheTask.php new file mode 100644 index 0000000..57d45da --- /dev/null +++ b/Mage/Task/BuiltIn/Filesystem/PermissionsWritableByApacheTask.php @@ -0,0 +1,26 @@ + + */ +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]"; + } +} \ No newline at end of file