Skip to content
This repository was archived by the owner on Apr 3, 2025. It is now read-only.

Commit 085af1b

Browse files
beardcodertonivdv
authored andcommitted
[FIX] Correct check of nfs.conf for vmwarefusion (#89)
1 parent a3b57dd commit 085af1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-machine-nfs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ lookupMandatoryProperties ()
277277
echoSuccess "\t\tOK"
278278

279279
echoInfo "Check NFS config settings ... \n"
280-
if [ "$(grep -Fxq "$nfsd_line" /etc/nfs.conf)" == "0" ]; then
280+
if [ "$(cat /etc/nfs.conf | grep -c "$nfsd_line")" == "1" ]; then
281281
echoInfo "/etc/nfs.conf is setup correctly!"
282282
else
283283
echoWarn "\n !!! Sudo will be necessary for editing /etc/nfs.conf !!!"

0 commit comments

Comments
 (0)