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

Added Proxmox VE Versoin support

This commit is contained in:
Jason Cheng
2018-12-25 09:15:22 +08:00
committed by GitHub
parent 433d744953
commit 107d72e862

View File

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