Suggestion: check if the user can run sudo
in PHP proxy
#253
Labels
bug confirmed
Bug reproduced and qualified
Milestone
Due to permission issues, I need to run a few of my scripts as
www-data
(e.g. viasudo -E -u www-data php artisan ...
).This currently triggers an error message, because the
php
proxy tries to runsudo chown docker:docker /opt/php_env_var_cache.php
, whichwww-data
does not have permission to do.For now, I am suppressing that error by directly calling
real_php
instead, but it would be nice of the PHP proxy could simply skip its extra setup steps if it is called as the wrong user (or if the current user simply doesn't havesudo
privileges).The text was updated successfully, but these errors were encountered: