1
0
forked from rpms/rpcbind

Make sure policycoreutils is installed before using it (bz 1972133)

Make sure /var/lib/rpcbind exists (bz 1972133)

Signed-off-by: Steve Dickson <steved@redhat.com>
Resolves: bz1972133
This commit is contained in:
Steve Dickson 2021-06-23 16:01:04 -04:00
parent ee0f81409e
commit fbf371c8a8

View File

@ -18,7 +18,7 @@ BuildRequires: make
BuildRequires: automake, autoconf, libtool, systemd, systemd-devel
BuildRequires: libtirpc-devel, quota-devel
Requires(pre): coreutils shadow-utils
Requires(post): systemd
Requires(post): systemd policycoreutils
Requires(preun): systemd
Requires(postun): systemd coreutils
@ -102,6 +102,13 @@ then
/bin/systemctl reenable rpcbind.socket >/dev/null 2>&1 || :
/bin/systemctl restart rpcbind.socket >/dev/null 2>&1 || :
fi
if [ ! -d /var/lib/rpcbind ]
then
mkdir /var/lib/rpcbind
chown rpc:rpc /var/lib/rpcbind
[ -x /usr/sbin/restorecon ] && \
/usr/sbin/restorecon /var/lib/rpcbind
fi
%files
%license COPYING
@ -120,6 +127,8 @@ fi
%changelog
* Wed Jun 23 2021 Steve Dickson <steved@redhat.com> - 1.2.6-1
- Use sysconfig variable in service file (bz 1972094)
- Make sure policycoreutils is installed before using it (bz 1972133)
- Make sure /var/lib/rpcbind exists (bz 1972133)
* Tue Jun 22 2021 Steve Dickson <steved@redhat.com> - 1.2.6-0
- Rebased to latest upstream release: rpcbind-1-2-6 (bz 1959128)