Fix check_sudomaint function - ADMIN group does not exist anymore, we now check that the wheel group has NOPASSWD for evomaintenance

This commit is contained in:
Tristan PILAT 2020-07-15 11:21:10 +02:00
parent 5eedf3ad4d
commit b58ad51307
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ check_customsyslog(){
check_sudomaint(){
file=/etc/sudoers
grep -q "Cmnd_Alias MAINT = /usr/share/scripts/evomaintenance.sh" $file \
&& grep -q "ADMIN ALL=NOPASSWD: MAINT" $file \
&& grep -q "%wheel ALL=NOPASSWD: MAINT" $file \
|| failed "IS_SUDOMAINT" ""
}