summaryrefslogtreecommitdiff
path: root/usr-lib-nagios-plugins
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2025-10-06 13:22:17 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2025-10-06 13:22:17 +0200
commit4dbe5eb930cc9bfa3261c2fe1dde6128cd6363cd (patch)
tree9e9f0da99ff26bf2ca7089d046199d930d3f4c7a /usr-lib-nagios-plugins
parentb63dddfad054f3c66831ba87cd8b9fe7126f3f4d (diff)
downloaditzks-systems-4dbe5eb930cc9bfa3261c2fe1dde6128cd6363cd.tar.gz
itzks-systems-4dbe5eb930cc9bfa3261c2fe1dde6128cd6363cd.tar.bz2
itzks-systems-4dbe5eb930cc9bfa3261c2fe1dde6128cd6363cd.zip
/usr-lib-nagios-plugins/check_needs-rebooting.sh: Support being used on ITZkS-branded Debian Edu systems.
Diffstat (limited to 'usr-lib-nagios-plugins')
-rwxr-xr-xusr-lib-nagios-plugins/check_needs-rebooting.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr-lib-nagios-plugins/check_needs-rebooting.sh b/usr-lib-nagios-plugins/check_needs-rebooting.sh
index 48c25ba..d12f2ea 100755
--- a/usr-lib-nagios-plugins/check_needs-rebooting.sh
+++ b/usr-lib-nagios-plugins/check_needs-rebooting.sh
@@ -115,8 +115,7 @@ function distro_name() {
else
echo "$REDHAT_RELEASE"
fi
- elif [[ -e /etc/lsb-release ]]; then
- . /etc/lsb-release
+ elif [[ -e /etc/lsb-release ]] && . /etc/lsb-release && [[ -n "${DISTRIB_ID}" ]]; then
echo $DISTRIB_ID
elif [[ -e /etc/debian_version ]]; then
DEBIAN_VER=`cat /etc/debian_version`
@@ -243,7 +242,7 @@ case `distro_name` in
echo "OS wasn't recognized, please report to maintainer of this script."
exit $UNKNOWN_EXIT_CODE
;;
- "Debian"|"Ubuntu")
+ "Debian"|"Debian Edu*"|"Ubuntu")
CheckDebianRebootRequired
;;
"Red Hat"|"CentOS")