!24 add a user directory when the rpc user directory does not exist

From: @sunsuwan 
Reviewed-by: @kircher 
Signed-off-by: @kircher
This commit is contained in:
openeuler-ci-bot 2023-05-22 13:54:52 +00:00 committed by Gitee
commit 0e1272e14f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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