mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 08:50:12 +01:00
Update ADconnection.sh
This commit is contained in:
parent
be8c637102
commit
e567916590
@ -43,7 +43,16 @@ export HOSTNAME
|
||||
myhost=$( hostname )
|
||||
sudo apt-get -qq install realmd adcli sssd -y
|
||||
sudo apt-get -qq install ntp -y
|
||||
sudo dpkg -l | grep realmd
|
||||
clear
|
||||
if [ $? = 0 ]
|
||||
then
|
||||
sudo echo "${INTRO_TEXT}"Pakages installed"${END}"
|
||||
else
|
||||
sudo echo "${RED_TEXT}"Installing pakages failed.. please check connectio and dpkg and try again."${INTRO_TEXT}"
|
||||
exit
|
||||
fi
|
||||
sleep 1
|
||||
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}"
|
||||
discovery=$(realm discover $DOMAIN | grep domain-name)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user