IS_EVOLINUXSUDOGROUP : improve sudoer directive detection

This commit is contained in:
Jérémy Lecour 2020-02-27 11:35:23 +01:00 committed by Jérémy Lecour
parent 21e0c79570
commit 7961d599a3
2 changed files with 3 additions and 1 deletions

View file

@ -7,6 +7,8 @@ and this project **does not adhere to [Semantic Versioning](http://semver.org/sp
### Changed
* IS_EVOLINUXSUDOGROUP : improve sudoer directive detection
### Deprecated
### Removed

View file

@ -754,7 +754,7 @@ check_tune2fs_m5() {
check_evolinuxsudogroup() {
if is_debian_stretch || is_debian_buster; then
if grep -q "^evolinux-sudo:" /etc/group; then
grep -q '^%evolinux-sudo ALL=(ALL:ALL) ALL' /etc/sudoers.d/evolinux \
grep -qE '^%evolinux-sudo +ALL ?= ?\(ALL:ALL\) ALL' /etc/sudoers.d/evolinux \
|| failed "IS_EVOLINUXSUDOGROUP" "missing evolinux-sudo directive in sudoers file"
fi
fi