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

Merge pull request #216 from jasoncheng7115/patch-2

Added Proxmox VE Versoin support
This commit is contained in:
CrazyMax
2018-12-29 22:17:13 +01:00
committed by GitHub

View File

@ -59,7 +59,10 @@ elif [ "${OS}" = "Linux" ] ; then
if [ "${ID}" = "Raspbian" ] ; then
DIST="Raspbian `cat /etc/debian_version`"
fi
if [ -f /usr/bin/pveversion ]; then
DIST="${DIST}/PVE `/usr/bin/pveversion | cut -d '/' -f 2`"
fi
elif [ -f /etc/gentoo-release ] ; then
DIST="Gentoo"
REV=$(tr -d '[[:alpha:]]' </etc/gentoo-release | tr -d " ")