diff --git a/rpcbind.spec b/rpcbind.spec index a368d04..d533f53 100644 --- a/rpcbind.spec +++ b/rpcbind.spec @@ -3,7 +3,7 @@ Name: rpcbind Version: 1.2.6 -Release: 5 +Release: 6 Summary: Universal addresses to RPC program number mapper License: BSD @@ -100,6 +100,15 @@ 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 + chown rpc:rpc /var/lib/rpcbind + if [ -x /usr/sbin/restorecon ] + then + /usr/sbin/restorecon /var/lib/rpcbind + fi +fi %files %defattr(-,root,root) @@ -118,6 +127,12 @@ fi %{_mandir}/man8/*.8.gz %changelog +* Mon May 22 2023 sunsuwan - 1.2.6-6 +- Type:bugfix +- Id:NA +- SUG:NA +- DESC:add a user directory when the rpc user directory does not exist + * Mon Mar 27 2023 wangqing - 1.2.6-5 - Type:bugfix - Id:NA