add a user directory when the rpc user dirctory does not exist
This commit is contained in:
parent
7d11612cbf
commit
882eb1b24c
17
rpcbind.spec
17
rpcbind.spec
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: rpcbind
|
Name: rpcbind
|
||||||
Version: 1.2.6
|
Version: 1.2.6
|
||||||
Release: 5
|
Release: 6
|
||||||
Summary: Universal addresses to RPC program number mapper
|
Summary: Universal addresses to RPC program number mapper
|
||||||
License: BSD
|
License: BSD
|
||||||
|
|
||||||
@ -100,6 +100,15 @@ then
|
|||||||
/bin/systemctl reenable %{name}.socket >/dev/null 2>&1 || :
|
/bin/systemctl reenable %{name}.socket >/dev/null 2>&1 || :
|
||||||
/bin/systemctl restart %{name}.socket >/dev/null 2>&1 || :
|
/bin/systemctl restart %{name}.socket >/dev/null 2>&1 || :
|
||||||
fi
|
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
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -118,6 +127,12 @@ fi
|
|||||||
%{_mandir}/man8/*.8.gz
|
%{_mandir}/man8/*.8.gz
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Mar 27 2023 wangqing <wangqing151@huawei.com> - 1.2.6-5
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- Id:NA
|
- Id:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user