fix the upgrade or upgrade exception alarm
Signed-off-by: 柳海鹏 <liuhaipeng@xfusion.com>
This commit is contained in:
parent
0e1272e14f
commit
a145d9ec94
24
rpcbind.spec
24
rpcbind.spec
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: rpcbind
|
Name: rpcbind
|
||||||
Version: 1.2.6
|
Version: 1.2.6
|
||||||
Release: 6
|
Release: 7
|
||||||
Summary: Universal addresses to RPC program number mapper
|
Summary: Universal addresses to RPC program number mapper
|
||||||
License: BSD
|
License: BSD
|
||||||
|
|
||||||
@ -80,26 +80,14 @@ if ! getent passwd rpc >/dev/null ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%systemd_post %{name}.service %{name}.socket
|
%systemd_post %{name}.socket %{name}.service
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%systemd_preun %{name}.service %{name}.socket
|
%systemd_preun %{name}.service %{name}.socket
|
||||||
|
|
||||||
%postun
|
%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 ]
|
if [ ! -d /var/lib/rpcbind ]
|
||||||
then
|
then
|
||||||
mkdir /var/lib/rpcbind
|
mkdir /var/lib/rpcbind
|
||||||
@ -127,6 +115,12 @@ fi
|
|||||||
%{_mandir}/man8/*.8.gz
|
%{_mandir}/man8/*.8.gz
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon May 22 2023 sunsuwan <sunsuwan3@huawei.com> - 1.2.6-6
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- Id:NA
|
- Id:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user