From 7644f79bcf72c227eaf7dae6288e145f955b37cd Mon Sep 17 00:00:00 2001 From: PierreGode Date: Thu, 9 Aug 2018 11:05:44 +0200 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ADconnection.sh b/ADconnection.sh index 7520e3b..46c84c2 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -406,12 +406,18 @@ linuxclient ################################## Join for linux clients ########################################## linuxclient(){ fedoras=$( cat /etc/fedora-release | awk '{print $1}' ) +Centoss$( hostnamectl | grep -i Operating | awk '{print $3}' ) if [ "$fedoras" = "Fedora" ] then Fedora_fn else +if [ "$Centoss" = "CentOS" ] +then +CentOS +else echo "" fi +fi desktop=$( sudo apt list --installed | grep -i desktop | grep -i ubuntu | cut -d '-' -f1 | grep -i desktop | head -1 | awk '{print$1}' ) rasp=$( lsb_release -a | grep -i Distributor | awk '{print $3}' ) kalilinux=$( lsb_release -a | grep -i Distributor | awk '{print $3}' ) @@ -1663,12 +1669,18 @@ fi_auth done PRECHECK_FN(){ fedoras=$( cat /etc/fedora-release | awk '{print $1}' ) +Centoss$( hostnamectl | grep -i Operating | awk '{print $3}' ) if [ "$fedoras" = "Fedora" ] then YUM_MENU else +if [ "$Centoss" = "CentOS" ] +then +YUM_MENU +else MENU_FN fi +fi } PRECHECK_FN