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
5053da155e
commit
f432e63c8b
@ -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.."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user