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:
@ -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/\)//`
|
||||
|
Reference in New Issue
Block a user