From 5053da155ef0fcafca03e822cb1e355e5a6e3f70 Mon Sep 17 00:00:00 2001 From: PierreGoude Date: Mon, 29 May 2017 13:29:23 +0200 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ADconnection.sh b/ADconnection.sh index 62c69ff..326248d 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -101,11 +101,17 @@ then echo "${INTRO_TEXT}"Detecting Ubuntu $var"${END}" sudo realm join --verbose --user=$ADMIN $DOMAIN else +if ["$var" -eq "17" ] +then +echo "${INTRO_TEXT}"Detecting Ubuntu $var"${END}" +sudo realm join --verbose --user=$ADMIN $DOMAIN +else clear sudo echo "${RED_TEXT}"I am having issuers to detect your Ubuntu version"${INTRO_TEXT}" exit fi fi +fi if [ $? -ne 0 ]; then echo "${RED_TEXT}"AD join failed.please check that computer object is already created and test again "${END}" exit 1