packweb-apache: Use $SUDO_USER when possible in phpContainer #136

Closed
mtrossevin wants to merge 1 commit from mtrossevin/ansible-roles:use-sudo_user into unstable

1 commit

Author SHA1 Message Date
Mathieu Trossevin 738f2682b0
packweb-apache: Use $SUDO_USER when possible in phpContainer
Some checks failed
continuous-integration/drone/pr Build is failing
And rollback to $LOGNAME when it isn't.

This remove the need to add $LOGNAME to env_keep in the sudoers file.

The $SUDO_USER variable is automatically set by sudo when it is used to
the user who used it so it fullfill the same role as $LOGNAME do in
phpContainer.
2021-11-03 17:40:13 +01:00