diff options
-rwxr-xr-x | usr-lib-nagios-plugins/check_needs-rebooting.sh | 5 |
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") |