hosts/bsd: check exports only if exports file exists [GH-2714]

This commit is contained in:
Mitchell Hashimoto 2013-12-28 13:48:00 -07:00
parent 7f78f18218
commit 2cf864e95b
2 changed files with 3 additions and 1 deletions

View File

@ -7,6 +7,8 @@ BUG FIXES:
registered plugin name [GH-2617]
- core: Fix exception if an EOFError was somehow raised by Ruby while
checking a box checksum. [GH-2716]
- hosts/bsd: Only run `nfsd checkexports` if there is an exports file.
[GH-2714]
## 1.4.1 (December 18, 2013)

View File

@ -36,7 +36,7 @@ module VagrantPlugins
end
def nfs_export(id, ips, folders)
nfs_checkexports!
nfs_checkexports! if File.file?("/etc/exports")
# We need to build up mapping of directories that are enclosed
# within each other because the exports file has to have subdirectories