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
7690d756c0
commit
80d3e7ff28
@ -991,6 +991,7 @@ fi
|
||||
########################################### Leave Realm ################################
|
||||
|
||||
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}')
|
||||
DOMAIN=$(realm discover | grep -i realm.name | awk '{print $2}')
|
||||
if [ "$LEFT" = "no" ]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user