Better usage doc + allow to set owner and group by using www-data:www-data syntax + task now fails if at least one command returns error

This commit is contained in:
Jérémy Huet
2014-12-18 17:45:12 +01:00
parent 209c6b9aa3
commit 42d3d5a8a1
2 changed files with 38 additions and 18 deletions
@@ -9,6 +9,12 @@ use Mage\Task\SkipException;
* Usage :
* pre-deploy:
* - filesystem/permissions-writable-by-web-server: {paths: /var/www/myapp/app/cache:/var/www/myapp/app/logs, recursive: false, checkPathsExist: true}
* - filesystem/permissions-writable-by-web-server:
* paths:
* - /var/www/myapp/app/cache
* - /var/www/myapp/app/logs
* recursive: false
* checkPathsExist: true
* on-deploy:
* - filesystem/permissions-writable-by-web-server: {paths: app/cache:app/logs, recursive: false, checkPathsExist: true}
*
@@ -32,7 +38,7 @@ class PermissionsWritableByWebServerTask extends PermissionsTask
*/
public function getName()
{
return "Gives write permissions to web server user for given paths [built-in]";
return "Giving write permissions to web server user for given paths [built-in]";
}
/**