1
0
mirror of https://github.com/librenms/librenms-agent.git synced 2024-05-09 09:54:52 +00:00

CloudLinux distro detection (#208)

Added CloudLinux distro detection, previously CloudLinux got identified as RedHat
This commit is contained in:
gardar
2018-10-25 19:19:20 +00:00
committed by Tony Murray
parent 8d66211adc
commit a827734c0e

View File

@ -24,6 +24,8 @@ elif [ "${OS}" = "Linux" ] ; then
DIST=$(cat /etc/redhat-release | awk '{print $1}')
if [ "${DIST}" = "CentOS" ]; then
DIST="CentOS"
elif [ "${DIST}" = "CloudLinux" ]; then
DIST="CloudLinux"
elif [ "${DIST}" = "Mandriva" ]; then
DIST="Mandriva"
PSEUDONAME=`cat /etc/mandriva-release | sed s/.*\(// | sed s/\)//`