Update ADconnection.sh

This commit is contained in:
PierreGoude 2017-01-26 12:33:35 +01:00 committed by GitHub
parent 5e80902465
commit 7612ba9961

View File

@ -44,10 +44,12 @@ sudo echo "${NORMAL}${NORMAL}"
var=$(lsb_release -a | grep -i release: | cut -d ':' -f2 | cut -d '.' -f1) var=$(lsb_release -a | grep -i release: | cut -d ':' -f2 | cut -d '.' -f1)
if [ "$var" -eq "14" ] if [ "$var" -eq "14" ]
then then
echo "Detecting Ubuntu 14"
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 "Detecting Ubuntu 16"
sudo realm join --verbose --user=$ADMIN $DOMAIN sudo realm join --verbose --user=$ADMIN $DOMAIN
else else
echo "Having issuers to detect your Ubuntu version" echo "Having issuers to detect your Ubuntu version"