mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 09:00:18 +01: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 New Issue
	
	Block a user