!32 fix the upgrade or upgrade exception alarm
From: @liu-haipeng6 Reviewed-by: @sunsuwan, @kircher Signed-off-by: @kircher
This commit is contained in:
commit
6a34adaa73
24
rpcbind.spec
24
rpcbind.spec
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user