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

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

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.

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.
mtrossevin added 1 commit 2021-11-03 17:49:43 +01:00
continuous-integration/drone/pr Build is failing Details
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.
Owner

$LOGNAME is a more widely set varaible than $SUDO_USER, that's why it is used instead of the sudo one.

`$LOGNAME` is a more widely set varaible than `$SUDO_USER`, that's why it is used instead of the sudo one.
bwaegeneire closed this pull request 2021-11-15 11:55:27 +01:00
Some checks failed
continuous-integration/drone/pr Build is failing

Pull request closed

Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: evolix/ansible-roles#136
No description provided.