diff options
| author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2025-10-06 13:22:17 +0200 |
|---|---|---|
| committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2025-10-06 18:41:42 +0200 |
| commit | 9accb0908f9a879f0bbf8ddb283767d0232ea7fd (patch) | |
| tree | 3edd85f230adab1c8acb39ab3c72f1dce3ba923e /usr-lib-nagios-plugins | |
| parent | a3e1b3b003135f19e92bffd9b390023c6e988716 (diff) | |
| download | itzks-systems-9accb0908f9a879f0bbf8ddb283767d0232ea7fd.tar.gz itzks-systems-9accb0908f9a879f0bbf8ddb283767d0232ea7fd.tar.bz2 itzks-systems-9accb0908f9a879f0bbf8ddb283767d0232ea7fd.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-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") |
