diff --git a/nagios.spec b/nagios.spec index efe039c1792f0470d957c9ace48314e96b020817..5faacfb0fbc1aa52f3ad83a08a9b367cb5705cbf 100644 --- a/nagios.spec +++ b/nagios.spec @@ -1,6 +1,6 @@ Name: nagios Version: 4.4.3 -Release: 6 +Release: 7 Summary: Host/service/network monitoring program License: GPLv2 URL: https://www.nagios.org/projects/nagios-core/ @@ -199,10 +199,6 @@ fi %preun %systemd_preun %{name}.service -if [ $1 -eq 0 ]; then - /sbin/service %{name} stop >/dev/null 2>&1 || : - /sbin/chkconfig --del %{name} || : -fi %postun /usr/bin/systemctl condrestart httpd > /dev/null 2>&1 || : @@ -210,14 +206,14 @@ fi %post selinux if [ "$1" -le "1" ]; then # First install semodule -i %{_datadir}/selinux/packages/%{name}/%{name}_epel.pp 2>/dev/null || : - fixfiles -R %{name} restore || : + fixfiles -R %{name} restore >/dev/null 2>&1 || : %systemd_postun_with_restart %{name}.service fi %preun selinux if [ "$1" -lt "1" ]; then # Final removal semodule -r %{name}_epel 2>/dev/null || : - fixfiles -R %{name} restore || : + fixfiles -R %{name} restore >/dev/null 2>&1 || : %systemd_postun_with_restart %{name}.service fi @@ -280,6 +276,9 @@ fi %{_libdir}/%{name}/cgi/ %changelog +* Thu Nov 26 2020 lingsheng - 4.4.3-7 +- Drop unexpected output in scripts + * Wed Apr 1 2020 yanglijin - 4.4.3-6 - fix build failed