mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-23 08:45:04 +01:00
Update writable.php (#2648)
Silence the errors from chgrp. Will not interrupt deploy process in case the group ownership is already correct, but user is different.
This commit is contained in:
parent
851ce772a0
commit
fd1be9baa6
@ -72,7 +72,7 @@ task('deploy:writable', function () {
|
||||
if ($httpGroup === false) {
|
||||
throw new \RuntimeException("Please setup `http_group` config parameter.");
|
||||
}
|
||||
run("$sudo chgrp -H $recursive $httpGroup $dirs");
|
||||
run("$sudo chgrp -H -f $recursive $httpGroup $dirs");
|
||||
} elseif ($mode === 'chmod') {
|
||||
// in chmod mode, defined `writable_chmod_recursive` has priority over common `writable_recursive`
|
||||
if (is_bool(get('writable_chmod_recursive'))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user