Update ADconnection.sh

This commit is contained in:
PierreGode 2019-02-20 12:25:16 +00:00 committed by GitHub
parent 440708949d
commit 44952da1d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1178,7 +1178,7 @@ if [ -f /etc/sudoers.d/sudoers ] < /dev/null > /dev/null 2>&1
then
echo Checking sudoers file.. "${INTRO_TEXT}"OK"${END}"
grouPs1=$(cat /etc/sudoers.d/sudoers | grep -i $myhost | cut -d '%' -f2 | cut -d '=' -f1 | sed -e 's/\<ALL\>//g' | head -1)
if [ $grouPs1 = "$myhost""sudoers" ]
if [ $grouPs1 -eq "$myhost""sudoers" ]
then
echo Checking sudoers user groups.. "${INTRO_TEXT}"OK"${END}"
else