Update ADconnection.sh

This commit is contained in:
PierreGoude 2017-02-02 11:40:31 +01:00 committed by GitHub
parent 13fb2395bb
commit 0f9b457580

View File

@ -50,7 +50,7 @@ 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" echo "${INTRO_TEXT}"Detecting Ubuntu $var"${END}"
echo "Installing additional dependencies" echo "Installing additional dependencies"
sudo apt-get install -y realmd sssd sssd-tools samba-common krb5-user sudo apt-get install -y realmd sssd sssd-tools samba-common krb5-user
clear clear
@ -62,7 +62,7 @@ sudo realm join -v -U $ADMIN $DOMAIN --install=/
else else
if [ "$var" -eq "16" ] if [ "$var" -eq "16" ]
then then
echo "Detecting Ubuntu 16" 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