mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-03 00:11:49 +02:00
Merge pull request #2502 from f0o/issue-2488
Added SLES detection to distro script
This commit is contained in:
@@ -60,6 +60,10 @@ elif [ "${OS}" = "Linux" ] ; then
|
|||||||
elif [ -f /etc/pld-release ] ; then
|
elif [ -f /etc/pld-release ] ; then
|
||||||
DIST=$(cat /etc/pld-release)
|
DIST=$(cat /etc/pld-release)
|
||||||
REV=""
|
REV=""
|
||||||
|
|
||||||
|
elif [ -f /etc/SuSE-release ] ; then
|
||||||
|
DIST=$(echo SLES $(grep VERSION /etc/SuSE-release | cut -d = -f 2 | tr -d " "))
|
||||||
|
REV=$(echo SP$(grep PATCHLEVEL /etc/SuSE-release | cut -d = -f 2 | tr -d " "))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f /etc/lsb-release -a "${IGNORE_LSB}" != 1 ] ; then
|
if [ -f /etc/lsb-release -a "${IGNORE_LSB}" != 1 ] ; then
|
||||||
|
|||||||
Reference in New Issue
Block a user