Update ADconnection.sh

This commit is contained in:
PierreGode 2018-08-08 11:20:30 +02:00 committed by GitHub
parent 5102fc77d5
commit bb70012156
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -865,7 +865,7 @@ fi
############################### Reauth ########################################## ############################### Reauth ##########################################
Reauthenticate(){ Reauthenticate(){
whoelse=$(who | head -1 | awk '{print $1}') whoelse=$( echo `whoami` )
homes=$( ls /home/tobii.intra/ ) homes=$( ls /home/tobii.intra/ )
if [ "$homes" = "$whoelse" ] if [ "$homes" = "$whoelse" ]
then then
@ -933,7 +933,7 @@ fi
########################################### Leave Realm ################################ ########################################### Leave Realm ################################
leave(){ leave(){
whoelse=$(who | head -1 | awk '{print $1}') whoelse=$( echo `whoami` )
homes=$( ls /home/tobii.intra/ ) homes=$( ls /home/tobii.intra/ )
if [ "$homes" = "$whoelse" ] if [ "$homes" = "$whoelse" ]
then then