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