ansible-roles/packweb-apache/files/multiphp-sudoers
Mathieu Trossevin 738f2682b0
packweb-apache: Use $SUDO_USER when possible in phpContainer
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

4 lines
83 B
Plaintext

Defaults env_keep += "PWD"
ALL ALL = NOPASSWD: /usr/local/bin/phpContainer