Accepting request 440248 from home:dimstar:Factory

This resolves the issues reported when building against the latest systemd package (either you are responsible to pull in shadow or you can't rely on it being there)

OBS-URL: https://build.opensuse.org/request/show/440248
OBS-URL: https://build.opensuse.org/package/show/Base:System/nfs-utils?expand=0&rev=173
This commit is contained in:
Dirk Mueller 2016-11-15 09:04:30 +00:00 committed by Git OBS Bridge
parent c60ef8a1de
commit e3d5b9e382
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Nov 14 14:51:30 UTC 2016 - dimstar@opensuse.org
- Also ignore errors on the first chown call: this can happen
especially in the build system when shadow is not present and
the user has not been generated in the %pre phase.
-------------------------------------------------------------------
Fri Oct 21 00:09:04 UTC 2016 - nfbrown@suse.com

View File

@ -178,7 +178,7 @@ useradd -r -c 'NFS statd daemon' \
%service_add_pre nfs
%post -n nfs-client
chown statd:nogroup %{_localstatedir}/lib/nfs
chown statd:nogroup %{_localstatedir}/lib/nfs > /dev/null 2>&1 || :
for i in state sm sm.bak; do
chown -R statd %{_localstatedir}/lib/nfs/$i > /dev/null 2>&1 || :
done