From 7a02b98523282abd2cf7e50bc96be9a0072cba52 Mon Sep 17 00:00:00 2001 From: PierreGode Date: Thu, 9 Aug 2018 14:36:39 +0200 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/ADconnection.sh b/ADconnection.sh index 67adf55..6b34e77 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -405,24 +405,28 @@ linuxclient ################################## Join for linux clients ########################################## linuxclient(){ fedoras=$( cat /etc/fedora-release | awk '{print $1}' ) < /dev/null > /dev/null 2>&1 -Centoss=$( hostnamectl | grep -i Operating | awk '{print $3}' ) -Debians=$( hostnamectl | grep -i Operating | awk '{print $3}' ) +TheOS=$( hostnamectl | grep -i Operating | awk '{print $3}' ) if [ "$fedoras" = "Fedora" ] then echo "Fedora detected" Fedora_fn else -if [ "$Centoss" = "CentOS" ] +if [ "$TheOS" = "CentOS" ] then echo "Cent OS detected" CentOS else -if [ "$Debians" = "Debian" ] +if [ "$TheOS" = "Debian" ] then echo "Debian detected" debianclient else -echo "Ubuntu Detected" +if [ $"TheOS" = "Ubuntu" ] +then +echo "" +else +echo "" +fi fi fi fi