From 882eb1b24c463ec68ee12a474f5e7032768ce548 Mon Sep 17 00:00:00 2001 From: sunsuwan Date: Mon, 22 May 2023 21:42:42 +0800 Subject: [PATCH] add a user directory when the rpc user dirctory does not exist --- rpcbind.spec | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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 -- Gitee