]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
nfs-utils: change file ownership for statd
authorAndreas Oberritter <obi@opendreambox.org>
Sun, 21 Sep 2014 18:44:29 +0000 (20:44 +0200)
committerAndreas Oberritter <obi@opendreambox.org>
Tue, 17 Oct 2017 02:38:27 +0000 (04:38 +0200)
Otherwise, rpc.statd complains about "Running as root. chown
/var/lib/nfs/statd to choose different user" when started by
systemd.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.3.bb

index c2324df0ac4de45559671629a52a9c8ed5792403..ab56ccd5ac4608b1444e69e01be66690a0bc8a5a 100644 (file)
@@ -112,6 +112,8 @@ do_compile_prepend() {
 }
 
 do_install_append () {
+       chown -R rpcuser:rpcuser ${D}${localstatedir}/lib/nfs/statd
+
        install -d ${D}${sysconfdir}/init.d
        install -m 0755 ${WORKDIR}/nfsserver ${D}${sysconfdir}/init.d/nfsserver
        install -m 0755 ${WORKDIR}/nfscommon ${D}${sysconfdir}/init.d/nfscommon