diff --git a/nfs-utils.changes b/nfs-utils.changes index c3a5ea8..f2a1692 100644 --- a/nfs-utils.changes +++ b/nfs-utils.changes @@ -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 diff --git a/nfs-utils.spec b/nfs-utils.spec index bcefe3a..0e7e512 100644 --- a/nfs-utils.spec +++ b/nfs-utils.spec @@ -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