Update ADconnection.sh

This commit is contained in:
PierreGode 2019-02-20 12:23:03 +00:00 committed by GitHub
parent 2c347c9e3a
commit 440708949d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 [ "$?" -eq "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}"