mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 08:50:12 +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}"
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user