add back the mistakenly deleted triggerin

Signed-off-by: sunsuwan <sunsuwan3@huawei.com>
(cherry picked from commit 151fb8eedd42f9caf9600f06ee3477fa0a57a4bf)
This commit is contained in:
sunsuwan 2024-12-18 09:07:37 +00:00 committed by openeuler-sync-bot
parent 6a34adaa73
commit 8ae29c09d1

View File

@ -3,7 +3,7 @@
Name: rpcbind Name: rpcbind
Version: 1.2.6 Version: 1.2.6
Release: 7 Release: 8
Summary: Universal addresses to RPC program number mapper Summary: Universal addresses to RPC program number mapper
License: BSD License: BSD
@ -88,6 +88,13 @@ fi
%postun %postun
%systemd_postun_with_restart %{name}.socket %{name}.service %systemd_postun_with_restart %{name}.socket %{name}.service
%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
@ -115,6 +122,12 @@ fi
%{_mandir}/man8/*.8.gz %{_mandir}/man8/*.8.gz
%changelog %changelog
* Wed Dec 18 2024 sunsuwan <sunsuwan3@huawei.com> - 1.2.6-8
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:add back the mistakenly deleted triggerin
* Mon May 29 2023 liuhaipeng <liuhaipeng@xfusion.com> - 1.2.6-7 * Mon May 29 2023 liuhaipeng <liuhaipeng@xfusion.com> - 1.2.6-7
- Type:bugfix - Type:bugfix
- Id:NA - Id:NA