!6 Drop unexpected output in scripts
From: @ultra_planet Reviewed-by: @jackie_wu123,@small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
3c29747794
13
nagios.spec
13
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 <lingsheng@huawei.com> - 4.4.3-7
|
||||
- Drop unexpected output in scripts
|
||||
|
||||
* Wed Apr 1 2020 yanglijin <yanglijin@huawei.com> - 4.4.3-6
|
||||
- fix build failed
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user