Update ADconnection.sh

This commit is contained in:
PierreGode 2018-08-09 14:36:39 +02:00 committed by GitHub
parent 3d10551cbf
commit 7a02b98523
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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