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
5102fc77d5
commit
bb70012156
@ -865,7 +865,7 @@ fi
|
||||
############################### Reauth ##########################################
|
||||
|
||||
Reauthenticate(){
|
||||
whoelse=$(who | head -1 | awk '{print $1}')
|
||||
whoelse=$( echo `whoami` )
|
||||
homes=$( ls /home/tobii.intra/ )
|
||||
if [ "$homes" = "$whoelse" ]
|
||||
then
|
||||
@ -933,7 +933,7 @@ fi
|
||||
########################################### Leave Realm ################################
|
||||
|
||||
leave(){
|
||||
whoelse=$(who | head -1 | awk '{print $1}')
|
||||
whoelse=$( echo `whoami` )
|
||||
homes=$( ls /home/tobii.intra/ )
|
||||
if [ "$homes" = "$whoelse" ]
|
||||
then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user