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
cab7163091
commit
2c347c9e3a
@ -1078,7 +1078,7 @@ echo "hostname is $myhost"
|
|||||||
echo "Looking for Realms.. please wait"
|
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 2 $DOMAIN >/dev/null
|
ping -c 2 $DOMAIN >/dev/null
|
||||||
if [ $? = 0 ]
|
if [ "$?" = "0" ]
|
||||||
then
|
then
|
||||||
clear
|
clear
|
||||||
echo "${NUMBER}I searched for an available domain and found ${MENU}>>> $DOMAIN <<<${END}${END}"
|
echo "${NUMBER}I searched for an available domain and found ${MENU}>>> $DOMAIN <<<${END}${END}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user