Update ADconnection.sh

This commit is contained in:
PierreGoude 2018-03-21 11:01:47 +01:00 committed by GitHub
parent 7690d756c0
commit 80d3e7ff28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -991,6 +991,7 @@ fi
########################################### Leave Realm ################################ ########################################### Leave Realm ################################
leave(){ leave(){
echo "${NUMBER}This funktion only works properly if this computer can locate the domain${END}"
LEFT=$(sudo realm discover | grep configured | awk '{print $2}') LEFT=$(sudo realm discover | grep configured | awk '{print $2}')
DOMAIN=$(realm discover | grep -i realm.name | awk '{print $2}') DOMAIN=$(realm discover | grep -i realm.name | awk '{print $2}')
if [ "$LEFT" = "no" ] if [ "$LEFT" = "no" ]