[pkg-nagios-changes] [Git][nagios-team/pkg-nagios-plugins-contrib][master] 2 commits: dsa/*: Update to latest upstream

Jan Wagner gitlab at salsa.debian.org
Thu Jan 31 12:23:27 GMT 2019


Jan Wagner pushed to branch master at Debian Nagios Maintainer Group / pkg-nagios-plugins-contrib


Commits:
8375691f by Jan Wagner at 2019-01-31T12:10:21Z
dsa/*: Update to latest upstream

- - - - -
7bb2be21 by Jan Wagner at 2019-01-31T12:11:31Z
dsa/checks/dsa-check-cert-expire-dir: Fix permissions

- - - - -


2 changed files:

- dsa/checks/dsa-check-cert-expire-dir
- dsa/checks/dsa-check-running-kernel


Changes:

=====================================
dsa/checks/dsa-check-cert-expire-dir
=====================================


=====================================
dsa/checks/dsa-check-running-kernel
=====================================
@@ -113,11 +113,12 @@ get_avail() {
 	fi
 
 	local availvrs=$(apt-cache policy ${imagename} 2>/dev/null | grep '^  Candidate' | awk '{print $2}')
-	local kernelversion=$(apt-cache policy ${prefix}-image-${kervers} 2>/dev/null | grep '^  Installed:' | awk '{print $2}')
-
-	if [ "$availvrs" = "$kernelversion" ]; then
-		return 0
-	fi
+	local kernelversion
+	for kernelversion in $(apt-cache policy ${prefix}-image-${kervers} ${prefix}-image-${kervers}-unsigned 2>/dev/null | grep '^  Installed:' | awk '{print $2}' | grep -F -v '(none)' ); do
+		if [ "$availvrs" = "$kernelversion" ]; then
+			return 0
+		fi
+	done
 
 	echo "$kernelversion != $availvrs"
 	return 1



View it on GitLab: https://salsa.debian.org/nagios-team/pkg-nagios-plugins-contrib/compare/bc2cc30a535e8a65a064bf5eec06a3fa1082800c...7bb2be212add228e25f704e8949bc174a3ec104c

-- 
View it on GitLab: https://salsa.debian.org/nagios-team/pkg-nagios-plugins-contrib/compare/bc2cc30a535e8a65a064bf5eec06a3fa1082800c...7bb2be212add228e25f704e8949bc174a3ec104c
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-nagios-changes/attachments/20190131/3cd0a190/attachment.html>


More information about the pkg-nagios-changes mailing list