Update ADconnection.sh

This commit is contained in:
PierreGode 2018-08-10 09:26:43 +02:00 committed by GitHub
parent 75739588a2
commit 06c9b85d4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1661,13 +1661,12 @@ fi_auth
esac esac
done done
PRECHECK_FN(){ PRECHECK_FN(){
fedoras=$( cat /etc/fedora-release | awk '{print $1}' ) TheOS=$( hostnamectl | grep -i Operating | awk '{print $3}' ) < /dev/null > /dev/null 2>&1
Centoss=$( hostnamectl | grep -i Operating | awk '{print $3}' ) if [ "$TheOS" = "Fedora" ]
if [ "$fedoras" = "Fedora" ]
then then
YUM_MENU YUM_MENU
else else
if [ "$Centoss" = "CentOS" ] if [ "$TheOS" = "CentOS" ]
then then
YUM_MENU YUM_MENU
else else
@ -1676,4 +1675,3 @@ fi
fi fi
} }
PRECHECK_FN PRECHECK_FN