forked from pool/nfs-utils
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:
parent
c60ef8a1de
commit
e3d5b9e382
@ -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
|
Fri Oct 21 00:09:04 UTC 2016 - nfbrown@suse.com
|
||||||
|
|
||||||
|
@ -178,7 +178,7 @@ useradd -r -c 'NFS statd daemon' \
|
|||||||
%service_add_pre nfs
|
%service_add_pre nfs
|
||||||
|
|
||||||
%post -n nfs-client
|
%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
|
for i in state sm sm.bak; do
|
||||||
chown -R statd %{_localstatedir}/lib/nfs/$i > /dev/null 2>&1 || :
|
chown -R statd %{_localstatedir}/lib/nfs/$i > /dev/null 2>&1 || :
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user