Fix non upstart linux nfs mounts

This commit is contained in:
Rudinei Goi Roecker 2016-09-20 17:57:54 -03:00
parent 2281c9fc03
commit 8b8c961935
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