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
d42da6f0e6
commit
f097244ddf
@ -255,9 +255,9 @@ sudo echo "${RED_TEXT}"Installing pakages failed.. please check connection ,dpkg
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
echo "hostname is $myhost"
|
echo "hostname is $myhost"
|
||||||
sleep 1
|
echo "Looking for Realms.. please wait"
|
||||||
DOMAIN=$(realm discover | grep -i realm.name | awk '{print $2}')
|
DOMAIN=$(realm discover | grep -i realm.name | awk '{print $2}')
|
||||||
ping -c 5 $DOMAIN >/dev/null
|
ping -c 2 $DOMAIN >/dev/null
|
||||||
if [ $? = 0 ]
|
if [ $? = 0 ]
|
||||||
then
|
then
|
||||||
clear
|
clear
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user