adlogix / docker-machine-nfs

Activates NFS on docker-machine
MIT License
794 stars 104 forks source link

grep is not working #88

Closed beardcoder closed 6 years ago

beardcoder commented 6 years ago

Use indeed if [ "$(cat /etc/nfs.conf | grep -c "$nfsd_line")" == "1" ]; then

This local the string "nfs.server.mount.require_resv_port = 0" corecctly

tonivdv commented 6 years ago

Hi @beardcoder ,

Can you elaborate a bit more.

Thank you

beardcoder commented 6 years ago

Hello, no problem.

On macOS the check if the line "nfs.server.mount.require_resv_port = 0" doesn't work. On each run the file nfs.conf will be overwritten.

The solution is to change to cat and pip the result to grep.

tonivdv commented 6 years ago

This is only for the vmware fusion driver right? Can you provide a PR?

beardcoder commented 6 years ago

yes i can ^^