Update ADconnection.sh

This commit is contained in:
PierreGode 2018-08-14 11:10:07 +02:00 committed by GitHub
parent fdd4882f53
commit 5f56c36d87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1531,7 +1531,22 @@ while [ opt != '' ]
fi fi
done done
} }
################# Precheck for YUM based OS #################
PRECHECK_FN(){
## Precheck sends yum based OS to an own menu ##
TheOS=$( hostnamectl | grep -i Operating | awk '{print $3}' ) < /dev/null > /dev/null 2>&1
if [ "$TheOS" = "Fedora" ]
then
YUM_MENU
else
if [ "$TheOS" = "CentOS" ]
then
YUM_MENU
else
MENU_FN
fi
fi
}
############################## Flags ############################### ############################## Flags ###############################
clear clear
#Versi0n=$( echo "7" ) #Versi0n=$( echo "7" )
@ -1712,19 +1727,4 @@ fi_auth
;; ;;
esac esac
done done
PRECHECK_FN(){
## Precheck sends yum based OS to an own menu ##
TheOS=$( hostnamectl | grep -i Operating | awk '{print $3}' ) < /dev/null > /dev/null 2>&1
if [ "$TheOS" = "Fedora" ]
then
YUM_MENU
else
if [ "$TheOS" = "CentOS" ]
then
YUM_MENU
else
MENU_FN
fi
fi
}
PRECHECK_FN PRECHECK_FN