Skip to content

Commit

Permalink
[deploy:writable] chgrp doesn't need http_user (#1660)
Browse files Browse the repository at this point in the history
* deploy:writable: chgrp doesn't need http_user

* Update CHANGELOG.md
  • Loading branch information
Slamdunk authored and antonmedv committed Jul 27, 2018
1 parent 62002e7 commit f770695
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -21,6 +21,7 @@
- Allow to set template file path in Drupal 7 recipe [#1603]
- Fixed once() tasks that where being run multiple times with ParallelExecutor
- Fixed high CPU usage when running in parallel
- Fixed `deploy:writable` no need to specify http_user when using chgrp writable_mode

## v6.1.0
[v6.0.5...v6.1.0](https://github.com/deployphp/deployer/compare/v6.0.5...v6.1.0)
Expand Down
2 changes: 1 addition & 1 deletion recipe/deploy/writable.php
Expand Up @@ -22,7 +22,7 @@
return;
}

if ($httpUser === false && $mode !== 'chmod') {
if ($httpUser === false && ! in_array($mode, ['chgrp', 'chmod'], true)) {
// Detect http user in process list.
$httpUser = run("ps axo comm,user | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | awk '{print $2}'");

Expand Down

0 comments on commit f770695

Please sign in to comment.