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
1e43427849
commit
13fb2395bb
@ -29,7 +29,6 @@ myhost=$( hostname )
|
|||||||
sudo apt-get install realmd adcli sssd -y
|
sudo apt-get install realmd adcli sssd -y
|
||||||
sudo apt-get install ntp -y
|
sudo apt-get install ntp -y
|
||||||
clear
|
clear
|
||||||
|
|
||||||
DOMAIN=$(realm discover | grep -i realm.name | cut -d ':' -f2 | sed -e 's/^[[:space:]]*//')
|
DOMAIN=$(realm discover | grep -i realm.name | cut -d ':' -f2 | sed -e 's/^[[:space:]]*//')
|
||||||
echo "${NUMBER}I searched for an available domain and found >>> $DOMAIN <<< ${END}"
|
echo "${NUMBER}I searched for an available domain and found >>> $DOMAIN <<< ${END}"
|
||||||
|
|
||||||
@ -102,7 +101,6 @@ echo Realm configured?.. "${RED_TEXT}"FAIL"${END}"
|
|||||||
else
|
else
|
||||||
echo Realm configured?.. "${INTRO_TEXT}"OK"${END}"
|
echo Realm configured?.. "${INTRO_TEXT}"OK"${END}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f /etc/sudoers.d/sudoers ]
|
if [ -f /etc/sudoers.d/sudoers ]
|
||||||
then
|
then
|
||||||
echo Checking sudoers file.. "${INTRO_TEXT}"OK"${END}"
|
echo Checking sudoers file.. "${INTRO_TEXT}"OK"${END}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user