Update ADconnection.sh

This commit is contained in:
PierreGoude 2017-02-06 10:41:29 +01:00 committed by GitHub
parent 7be1a948bb
commit 152ce4c7e1

View File

@ -349,6 +349,8 @@ eof
} }
############################### Fail check #################################### ############################### Fail check ####################################
failcheck(){ failcheck(){
export HOSTNAME
myhost=$( hostname )
therealm=$(realm discover | grep -i configured: | cut -d ':' -f2 | sed -e 's/^[[:space:]]*//') therealm=$(realm discover | grep -i configured: | cut -d ':' -f2 | sed -e 's/^[[:space:]]*//')
if [ $therealm = no ] if [ $therealm = no ]
then then