From 4dbe5eb930cc9bfa3261c2fe1dde6128cd6363cd Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Mon, 6 Oct 2025 13:22:17 +0200 Subject: /usr-lib-nagios-plugins/check_needs-rebooting.sh: Support being used on ITZkS-branded Debian Edu systems. --- usr-lib-nagios-plugins/check_needs-rebooting.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usr-lib-nagios-plugins') 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") -- cgit v1.2.3