fix the upgrade or upgrade exception alarm

Signed-off-by: 柳海鹏 <liuhaipeng@xfusion.com>
This commit is contained in:
柳海鹏 2023-05-29 14:24:40 +00:00 committed by Gitee
parent 0e1272e14f
commit a145d9ec94
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -3,7 +3,7 @@
Name: rpcbind
Version: 1.2.6
Release: 6
Release: 7
Summary: Universal addresses to RPC program number mapper
License: BSD
@ -80,26 +80,14 @@ if ! getent passwd rpc >/dev/null ; then
fi
%post
%systemd_post %{name}.service %{name}.socket
%systemd_post %{name}.socket %{name}.service
%preun
%systemd_preun %{name}.service %{name}.socket
%postun
%systemd_postun_with_restart %{name}.service %{name}.socket
%systemd_postun_with_restart %{name}.socket %{name}.service
%triggerun -- %{name} < 0.2.0-15
%{_bindir}/systemd-sysv-convert --save %{name} >/dev/null 2>&1 ||:
/bin/systemctl --no-reload enable %{name}.service >/dev/null 2>&1
/sbin/chkconfig --del %{name} >/dev/null 2>&1 || :
/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
%triggerin -- %{name} > 0.2.2-2.0
if systemctl -q is-enabled %{name}.socket
then
/bin/systemctl reenable %{name}.socket >/dev/null 2>&1 || :
/bin/systemctl restart %{name}.socket >/dev/null 2>&1 || :
fi
if [ ! -d /var/lib/rpcbind ]
then
mkdir /var/lib/rpcbind
@ -127,6 +115,12 @@ fi
%{_mandir}/man8/*.8.gz
%changelog
* Mon May 29 2023 liuhaipeng <liuhaipeng@xfusion.com> - 1.2.6-7
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:fix the upgrade or upgrade exception alarm
* Mon May 22 2023 sunsuwan <sunsuwan3@huawei.com> - 1.2.6-6
- Type:bugfix
- Id:NA