From f8bc604b1f2c4432d8fd25e5f5c122a14c13d446 Mon Sep 17 00:00:00 2001 From: lingsheng Date: Thu, 26 Nov 2020 11:26:33 +0800 Subject: [PATCH] Drop unexpected output in scripts --- nagios.spec | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/nagios.spec b/nagios.spec index efe039c..5faacfb 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 -- Gitee