mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 09:12:51 +01:00
Fix http user detection (#613)
This commit is contained in:
parent
5fa083c072
commit
889c35abac
@ -276,7 +276,7 @@ task('deploy:writable', function () {
|
||||
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}}');
|
||||
|
Loading…
x
Reference in New Issue
Block a user