Browse Source

nfs/module-setup.sh: check for "rpc.rpc" before running chown

master
Harald Hoyer 13 years ago
parent
commit
6ca264a151
  1. 4
      modules.d/95nfs/module-setup.sh

4
modules.d/95nfs/module-setup.sh

@ -71,6 +71,8 @@ install() { @@ -71,6 +71,8 @@ install() {
# rpc user needs to be able to write to this directory to save the warmstart
# file
chmod 770 "$initdir/var/lib/rpcbind"
chown rpc.rpc "$initdir/var/lib/rpcbind"
egrep -q '^rpc:' /etc/passwd \
&& egrep -q '^rpc:' /etc/group \
&& chown rpc.rpc "$initdir/var/lib/rpcbind"
}


Loading…
Cancel
Save