From 152801e1396e6af885fc2ca4d220e661c28d68c8 Mon Sep 17 00:00:00 2001 From: PierreGode Date: Fri, 9 Nov 2018 10:10:09 +0100 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/ADconnection.sh b/ADconnection.sh index 722a745..c2c7722 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -193,6 +193,7 @@ echo Checking sudoers file.. "${INTRO_TEXT}"OK"${END}" else echo checking sudoers file.. "${RED_TEXT}"FAIL"${END}" fi +fi grouPs=$(cat /etc/sudoers.d/sudoers | grep -i "$myhost" | cut -d '%' -f2 | awk '{print $1}' | head -1) if [ "$grouPs" = "$myhost""sudoers" ] then