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
1ed2e502cf
commit
dbcc3debdf
@ -992,7 +992,16 @@ fi
|
|||||||
|
|
||||||
leave(){
|
leave(){
|
||||||
DOMAIN=$(realm discover | grep -i realm.name | awk '{print $2}')
|
DOMAIN=$(realm discover | grep -i realm.name | awk '{print $2}')
|
||||||
echo $DOMAIN
|
read -p "Do you really want to leave $DOMAIN (y/n)?" yn
|
||||||
|
case $yn in
|
||||||
|
[Yy]* ) sudo realm leave $DOMAIN
|
||||||
|
;;
|
||||||
|
[Nn]* ) echo "Enter Domain to leave"
|
||||||
|
read -r DOMAIN;;
|
||||||
|
sudo realm leave $DOMAIN
|
||||||
|
* ) echo 'Please answer yes or no.';;
|
||||||
|
esac
|
||||||
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
########################################### info #######################################
|
########################################### info #######################################
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user