Skip to content

Commit

Permalink
Fix http user detection (#613)
Browse files Browse the repository at this point in the history
  • Loading branch information
gperdomor authored and Oanh Nguyen committed Apr 11, 2016
1 parent 5fa083c commit 889c35a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipe/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@
if (!empty($dirs)) {
try {
if (null === $httpUser) {
$httpUser = run("ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1")->toString();
$httpUser = run("ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1")->toString();
}

cd('{{release_path}}');
Expand Down

0 comments on commit 889c35a

Please sign in to comment.