Update ADconnection.sh

This commit is contained in:
PierreGoude 2017-05-29 13:32:43 +02:00 committed by GitHub
parent 5053da155e
commit f432e63c8b

View File

@ -96,25 +96,25 @@ sleep 1
clear clear
sudo realm join -v -U $ADMIN $DOMAIN --install=/ sudo realm join -v -U $ADMIN $DOMAIN --install=/
else else
if [ "$var" -eq "16" ] if [ "$var" -eq "16" ]
then then
echo "${INTRO_TEXT}"Detecting Ubuntu $var"${END}" echo "${INTRO_TEXT}"Detecting Ubuntu $var"${END}"
sudo realm join --verbose --user=$ADMIN $DOMAIN sudo realm join --verbose --user=$ADMIN $DOMAIN
else else
if ["$var" -eq "17" ] if ["$var" -eq "17" ]
then then
echo "${INTRO_TEXT}"Detecting Ubuntu $var"${END}" echo "${INTRO_TEXT}"Detecting Ubuntu $var"${END}"
sudo realm join --verbose --user=$ADMIN $DOMAIN sudo realm join --verbose --user=$ADMIN $DOMAIN
else else
clear clear
sudo echo "${RED_TEXT}"I am having issuers to detect your Ubuntu version"${INTRO_TEXT}" sudo echo "${RED_TEXT}"I am having issuers to detect your Ubuntu version"${INTRO_TEXT}"
exit exit
fi fi
fi fi
fi fi
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "${RED_TEXT}"AD join failed.please check that computer object is already created and test again "${END}" echo "${RED_TEXT}"AD join failed.please check that computer object is already created and test again "${END}"
exit 1 exit
fi fi
sudo echo "############################" sudo echo "############################"
sudo echo "Configuratig files.." sudo echo "Configuratig files.."