From 2ff8650587942dfa4cf4da4e1bc5ebaaebc0f74b Mon Sep 17 00:00:00 2001 From: PierreGoude Date: Thu, 17 Aug 2017 11:13:16 +0200 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ADconnection.sh b/ADconnection.sh index b5f8727..2bea76c 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -208,7 +208,7 @@ echo Checking sudoers file.. "${INTRO_TEXT}"OK"${END}" else echo checking sudoers file.. "${RED_TEXT}"FAIL"${END}" fi -grouPs=$(cat /etc/sudoers.d/sudoers | grep -i sewspierre | cut -d '%' -f2 | awk '{print $1}') +grouPs=$(cat /etc/sudoers.d/sudoers | grep -i $myhost | cut -d '%' -f2 | awk '{print $1}') if [ "$grouPs" = "$myhost""sudoers" ] then echo Checking sudoers users.. "${INTRO_TEXT}"OK"${END}"