From d5544ec3c3dad846abd31da69fb2bd26df89c82a Mon Sep 17 00:00:00 2001 From: PierreGode Date: Thu, 9 Aug 2018 14:26:18 +0200 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ADconnection.sh b/ADconnection.sh index e891a78..ea99d4d 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -404,19 +404,22 @@ linuxclient ################################## Join for linux clients ########################################## linuxclient(){ -fedoras=$( cat /etc/fedora-release | awk '{print $1}' ) +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}' ) if [ "$fedoras" = "Fedora" ] then +echo "Fedora detected" Fedora_fn else if [ "$Centoss" = "CentOS" ] then +echo "Cent OS detected" CentOS else if [ "$Debians" = "Debian" ] then +echo "Debian detected" debianclient else echo "" @@ -442,13 +445,15 @@ kalijoin else if [ "$fedoras" = "Fedora" ] then +echo "Fedora detected" Fedora_fn else if [ "$debians" = "Debian" ] then +echo "Debian detected" debianclient else -echo "" +echo "Ubuntu detected" fi fi fi