From: Peter Palfrader Date: Tue, 31 Mar 2009 21:25:50 +0000 (+0200) Subject: Only run weak keys check if there is no prior weak key status X-Git-Url: https://wiki.adam-barratt.org.uk/gitweb/?a=commitdiff_plain;h=fdce994dfe78d5fe2d37840322d03e353b5ec0fa;p=mirror%2Fdsa-nagios.git Only run weak keys check if there is no prior weak key status --- diff --git a/dsa-nagios-checks/debian/changelog b/dsa-nagios-checks/debian/changelog index c847ccf..a41068c 100644 --- a/dsa-nagios-checks/debian/changelog +++ b/dsa-nagios-checks/debian/changelog @@ -1,8 +1,9 @@ dsa-nagios-checks (70) XXstable; urgency=low * No longer check nrpe config in postinst - puppet fixes it for us anyway. + * Only run weak keys check if there is no prior weak key status. - -- Peter Palfrader Tue, 31 Mar 2009 23:24:44 +0200 + -- Peter Palfrader Tue, 31 Mar 2009 23:25:31 +0200 dsa-nagios-checks (69) unstable; urgency=low diff --git a/dsa-nagios-checks/debian/postinst b/dsa-nagios-checks/debian/postinst index d6935f7..d7db3b4 100644 --- a/dsa-nagios-checks/debian/postinst +++ b/dsa-nagios-checks/debian/postinst @@ -2,7 +2,7 @@ set -e -/usr/share/dsa/weak-ssh-keys-check -s /var/cache/dsa/nagios/weak-ssh-keys +[ -e /var/cache/dsa/nagios/weak-ssh-keys ] || /usr/share/dsa/weak-ssh-keys-check -s /var/cache/dsa/nagios/weak-ssh-keys #DEBHELPER#