Merge pull request #7813 from rudineirk/fix-non-upstart-linux

Fix non upstart linux nfs mounts
This commit is contained in:
Chris Roberts 2016-10-06 12:59:23 -07:00 committed by GitHub
commit b738aaac0f
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ module VagrantPlugins
# Emit a mount event
commands << <<-EOH.gsub(/^ {14}/, '')
if command -v /sbin/init && /sbin/init --version | grep upstart; then
if test -x /sbin/initctl && command -v /sbin/init && /sbin/init --version | grep upstart; then
/sbin/initctl emit --no-wait vagrant-mounted MOUNTPOINT=#{guest_path}
fi
EOH