]> git.pld-linux.org Git - packages/nagios-plugin-check_poldek.git/commitdiff
- lousy check for mode on Packages, warn if not world readable. better checks welcome
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 19 Jun 2012 11:34:55 +0000 (11:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nagios-plugin-check_poldek.spec -> 1.22

nagios-plugin-check_poldek.spec

index f578ca73b97573d9b50196afd5e2458e84020661..2ca1e42b6d942939be1053b42ae22012e3c494b4 100644 (file)
@@ -3,7 +3,7 @@ Summary:        Nagios plugin to check updates of poldek based systems
 Summary(pl.UTF-8):     Wtyczka Nagiosa sprawdzająca aktualizacje systemów używających poldka
 Name:          nagios-plugin-%{plugin}
 Version:       0.7.1
-Release:       1
+Release:       2
 License:       MIT
 Group:         Networking
 Source0:       http://github.com/pawelz/nagios-check_poldek/tarball/v%{version}/%{plugin}-%{version}.tgz
@@ -48,6 +48,12 @@ cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+perms=$(ls -l /var/lib/rpm/Packages | awk '{print $1}' | sed -e 's/[^r]//g')
+if [ $perms != rrr ]; then
+       echo >&2 "WARNING: /var/lib/rpm/Packages not world readable, plugin will likely fail to run"
+fi
+
 %triggerin -- nagios-nrpe
 %nagios_nrpe -a %{plugin} -f %{_sysconfdir}/%{plugin}.cfg
 
This page took 0.057221 seconds and 4 git commands to generate.