From e2181c544e00f3e46a51fd2ef36652be755cd38c Mon Sep 17 00:00:00 2001 From: PierreGoude Date: Tue, 7 Feb 2017 11:24:31 +0100 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ADconnection.sh b/ADconnection.sh index a7008b3..5ec438f 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -17,6 +17,15 @@ # ~~~~~~~~~~ Environment Setup ~~~~~~~~~~ # ####################### Setup for Ubuntu16 and Ubuntu 14 clients ####################################### ubuntuclient(){ +desktop=$(sudo apt list --installed | grep -i desktop | grep -i ubuntu | cut -d '-' -f1 | grep -i desktop) +if [ $desktop = desktop ] +then +echo "" +else +echo " this seems to be a server, swithching to server mode" +sleep 2 +ubuntuserver14 +fi export HOSTNAME myhost=$( hostname ) sudo apt-get -qq install realmd adcli sssd -y