Update ADconnection.sh

This commit is contained in:
PierreGode 2020-05-22 10:09:25 +02:00 committed by GitHub
parent 54d905b816
commit 05ca6de0a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -851,7 +851,7 @@ read -r -p "Do you wish to use it (y/n)?" yn
esac
fi
else
REALM=$( realm discover
REALM=$( realm discover )
echo "Using Domain: $REALM"
DOMAIN=$(echo "$REALM")
fi
@ -1055,7 +1055,7 @@ sleep 1
REALM=$( sudo grep DOMAIN readfile | awk '{print $3}' )
if [ "$REALM" = "null" ]
then
DOMAIN=$(realm discover | grep -i realm.name | awk '{print $2}')
DOMAIN=$(realm discover| grep -i realm.name | awk '{print $2}')
if ! ping -c 2 "$DOMAIN" < /dev/null > /dev/null 2>&1
then
clear