From 45361e460696373e3d69e84967c300ea3feb721a Mon Sep 17 00:00:00 2001 From: Richard Allen Date: Wed, 21 Dec 2016 11:53:52 +0000 Subject: [PATCH] Fixing spec a bit --- .../nagios-okplugin-check_firewall_active.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/check_firewall_active/nagios-okplugin-check_firewall_active.spec b/check_firewall_active/nagios-okplugin-check_firewall_active.spec index 9260f7f..d9932b2 100644 --- a/check_firewall_active/nagios-okplugin-check_firewall_active.spec +++ b/check_firewall_active/nagios-okplugin-check_firewall_active.spec @@ -28,7 +28,7 @@ A Nagios plugin to check if iptables are actually enforcing rules %install rm -rf %{buildroot} -install -D -p -m 0755 check_time.sh %{buildroot}%{_libdir}/nagios/plugins/check_firewall_active.sh +install -D -p -m 0755 check_firewall_active.sh %{buildroot}%{_libdir}/nagios/plugins/check_firewall_active.sh install -D -p -m 0755 nrpe.d/check_firewall_active.cfg %{buildroot}/etc/nrpe.d/check_firewall_active.cfg install -D -p -m 0644 sudoers.d/check_firewall_active %{buildroot}/etc/sudoers.d/check_firewall_active @@ -42,6 +42,9 @@ rm -rf %{buildroot} /etc/nrpe.d/check_firewall_active.cfg /etc/sudoers.d/check_firewall_active +%post +restorecon -v %{_libdir}/nagios/plugins/check_firewall_active.sh /etc/nrpe.d/check_firewall_active.cfg /etc/sudoers.d/check_firewall_active + %changelog * Thu Dec 20 2016 Richard Allen 0.1-1 - Initial packaging