add a user directory when the rpc user dirctory does not exist

This commit is contained in:
sunsuwan 2023-05-22 21:42:42 +08:00
parent 7d11612cbf
commit 882eb1b24c

View File

@ -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 <sunsuwan3@huawei.com> - 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 <wangqing151@huawei.com> - 1.2.6-5
- Type:bugfix
- Id:NA