Skip to content

Commit 889c35a

Browse files
gperdomorOanh Nguyen
authored andcommitted
Fix http user detection (#613)
1 parent 5fa083c commit 889c35a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

recipe/common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@
276276
if (!empty($dirs)) {
277277
try {
278278
if (null === $httpUser) {
279-
$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();
279+
$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();
280280
}
281281

282282
cd('{{release_path}}');

0 commit comments

Comments
 (0)