Skip to content

Commit

Permalink
[FIX] Correct check of nfs.conf for vmwarefusion (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
beardcoder authored and tonivdv committed May 18, 2018
1 parent a3b57dd commit 085af1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-machine-nfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ lookupMandatoryProperties ()
echoSuccess "\t\tOK"

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

0 comments on commit 085af1b

Please sign in to comment.