Drop unexpected output in scripts
This commit is contained in:
parent
89cfd842f3
commit
b15a85142e
13
nagios.spec
13
nagios.spec
@ -1,6 +1,6 @@
|
|||||||
Name: nagios
|
Name: nagios
|
||||||
Version: 4.4.3
|
Version: 4.4.3
|
||||||
Release: 6
|
Release: 7
|
||||||
Summary: Host/service/network monitoring program
|
Summary: Host/service/network monitoring program
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: https://www.nagios.org/projects/nagios-core/
|
URL: https://www.nagios.org/projects/nagios-core/
|
||||||
@ -199,10 +199,6 @@ fi
|
|||||||
|
|
||||||
%preun
|
%preun
|
||||||
%systemd_preun %{name}.service
|
%systemd_preun %{name}.service
|
||||||
if [ $1 -eq 0 ]; then
|
|
||||||
/sbin/service %{name} stop >/dev/null 2>&1 || :
|
|
||||||
/sbin/chkconfig --del %{name} || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
/usr/bin/systemctl condrestart httpd > /dev/null 2>&1 || :
|
/usr/bin/systemctl condrestart httpd > /dev/null 2>&1 || :
|
||||||
@ -210,14 +206,14 @@ fi
|
|||||||
%post selinux
|
%post selinux
|
||||||
if [ "$1" -le "1" ]; then # First install
|
if [ "$1" -le "1" ]; then # First install
|
||||||
semodule -i %{_datadir}/selinux/packages/%{name}/%{name}_epel.pp 2>/dev/null || :
|
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
|
%systemd_postun_with_restart %{name}.service
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%preun selinux
|
%preun selinux
|
||||||
if [ "$1" -lt "1" ]; then # Final removal
|
if [ "$1" -lt "1" ]; then # Final removal
|
||||||
semodule -r %{name}_epel 2>/dev/null || :
|
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
|
%systemd_postun_with_restart %{name}.service
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -280,6 +276,9 @@ fi
|
|||||||
%{_libdir}/%{name}/cgi/
|
%{_libdir}/%{name}/cgi/
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Apr 1 2020 yanglijin <yanglijin@huawei.com> - 4.4.3-6
|
||||||
- fix build failed
|
- fix build failed
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user