mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 16:50:13 +01:00
Update ADconnection.sh
This commit is contained in:
parent
b790f9ad77
commit
2ff8650587
@ -208,7 +208,7 @@ echo Checking sudoers file.. "${INTRO_TEXT}"OK"${END}"
|
|||||||
else
|
else
|
||||||
echo checking sudoers file.. "${RED_TEXT}"FAIL"${END}"
|
echo checking sudoers file.. "${RED_TEXT}"FAIL"${END}"
|
||||||
fi
|
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" ]
|
if [ "$grouPs" = "$myhost""sudoers" ]
|
||||||
then
|
then
|
||||||
echo Checking sudoers users.. "${INTRO_TEXT}"OK"${END}"
|
echo Checking sudoers users.. "${INTRO_TEXT}"OK"${END}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user