From 152ce4c7e143d24768208b3a7fae0912db699166 Mon Sep 17 00:00:00 2001 From: PierreGoude Date: Mon, 6 Feb 2017 10:41:29 +0100 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ADconnection.sh b/ADconnection.sh index 9a044c0..3eb5761 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -349,6 +349,8 @@ eof } ############################### Fail check #################################### failcheck(){ +export HOSTNAME +myhost=$( hostname ) therealm=$(realm discover | grep -i configured: | cut -d ':' -f2 | sed -e 's/^[[:space:]]*//') if [ $therealm = no ] then