From a827734c0ec0e0cdf5e2a04730ec68dbad3fd477 Mon Sep 17 00:00:00 2001 From: gardar Date: Thu, 25 Oct 2018 19:19:20 +0000 Subject: [PATCH] CloudLinux distro detection (#208) Added CloudLinux distro detection, previously CloudLinux got identified as RedHat --- snmp/distro | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snmp/distro b/snmp/distro index d833a0e..ce14680 100755 --- a/snmp/distro +++ b/snmp/distro @@ -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/\)//`