Improve IS_EVOMAINTENANCEUSERS test

This commit is contained in:
Gregory Colpart 2009-07-19 02:44:01 +02:00
parent e4ecf247c0
commit c476512766

View file

@ -124,7 +124,7 @@ if [ "$IS_UMASKSUDOERS" = 1 ]; then
fi
if [ "$IS_EVOMAINTENANCEUSERS" = 1 ]; then
for i in $(grep ^User_Alias.*ADMIN /etc/sudoers | cut -d= -f2 | tr -d " " | tr "," "\n"); do
for i in $(grep "^User_Alias ADMIN" /etc/sudoers | cut -d= -f2 | tr -d " " | tr "," "\n"); do
grep "^trap.*sudo.*evomaintenance.sh" /home/$i/.*profile >/dev/null || echo 'IS_EVOMAINTENANCEUSERS FAILED!'
done
fi