mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 16:50:13 +01:00
Update ADconnection.sh
This commit is contained in:
parent
ea3905a224
commit
5053da155e
@ -101,11 +101,17 @@ 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" ]
|
||||||
|
then
|
||||||
|
echo "${INTRO_TEXT}"Detecting Ubuntu $var"${END}"
|
||||||
|
sudo realm join --verbose --user=$ADMIN $DOMAIN
|
||||||
|
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
|
||||||
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 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user