[debian-edu-commits] debian-edu/upstream/ 05/07: Adjust nagios-plugins/check_kernel_status to avoid perl warning on Debian and Ubuntu.
Petter Reinholdtsen
pere at moszumanska.debian.org
Thu Aug 21 09:25:45 UTC 2014
This is an automated email from the git hooks/post-receive script.
pere pushed a commit to branch master
in repository sitesummary.
commit a4827213fdacc33926702697f1a37367be8ee5ee
Author: Petter Reinholdtsen <pere at hungry.com>
Date: Thu Aug 21 11:15:15 2014 +0200
Adjust nagios-plugins/check_kernel_status to avoid perl warning on Debian and Ubuntu.
---
debian/changelog | 2 ++
nagios-plugins/check_kernel_status | 4 ++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 715c9d8..cd5395a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,8 @@ sitesummary (0.1.11) UNRELEASED; urgency=low
* Remove obsolete code from sitesummary postinst, used when
migrating apache config in sitesummary version 0.0.7.
* Add Alexander Alemayhu as uploader.
+ * Adjust nagios-plugins/check_kernel_status to avoid perl warning on
+ Debian and Ubuntu.
-- Petter Reinholdtsen <pere at debian.org> Thu, 21 Aug 2014 10:21:24 +0200
diff --git a/nagios-plugins/check_kernel_status b/nagios-plugins/check_kernel_status
index a1a60b8..cd2547e 100755
--- a/nagios-plugins/check_kernel_status
+++ b/nagios-plugins/check_kernel_status
@@ -25,7 +25,7 @@ if ( -e '/proc/version_signature' )
$sig = `cat /proc/version_signature`;
if ( $sig =~ /.* (\d+)\.(\d+)\.(\d+)-(\d+)\.(\d+)-[generic|server]/ )
{
- @running_version = ($1, $2, $3, $4, $5);
+ @running_version = ($1, $2, $3, $4, $5, 0);
}
else
{
@@ -47,7 +47,7 @@ elsif ( -e '/proc/version' )
)
{
- @running_version = ($1, $2, $3, $4, $5, $6);
+ @running_version = ($1, $2, $3, $4, $5 || 0, $6 || 0);
}
else
{
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/upstream/sitesummary.git
More information about the debian-edu-commits
mailing list