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

Add Debian support (#71)

Before that only Ubuntu was supported, now Debian users can use this nice script too!
This commit is contained in:
Mathias B
2016-11-17 09:31:56 +01:00
committed by Neil Lathwood
parent 36ed3f008c
commit c5fea261de

View File

@ -42,6 +42,13 @@ if [ -f /etc/os-release ]; then
else
echo "0";
fi
elif [ $OS == "debian" ]; then
UPDATES=`$BIN_APT $CMD_APT | $BIN_GREP 'Inst' | $BIN_WC $CMD_WC`
if [ $UPDATES -gt 1 ]; then
echo $UPDATES;
else
echo "0";
fi
elif [ $OS == "ubuntu" ]; then
UPDATES=`$BIN_APT $CMD_APT | $BIN_GREP 'Inst' | $BIN_WC $CMD_WC`
if [ $UPDATES -gt 1 ]; then