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:
memen45 2021-09-11 17:40:01 +02:00 committed by GitHub
parent 851ce772a0
commit fd1be9baa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'))) {