diff --git a/lib/vagrant-lxc/command/sudoers.rb b/lib/vagrant-lxc/command/sudoers.rb index fcb2099..42b538a 100644 --- a/lib/vagrant-lxc/command/sudoers.rb +++ b/lib/vagrant-lxc/command/sudoers.rb @@ -83,6 +83,7 @@ module Vagrant hash[cmd] = `which #{cmd}`.strip end hash['lxc_bin'] = Pathname(`which lxc-create`.strip).parent.to_s + hash['ruby'] = Gem.ruby end end end diff --git a/templates/sudoers.rb.erb b/templates/sudoers.rb.erb index 94db7f7..e9e6fd5 100644 --- a/templates/sudoers.rb.erb +++ b/templates/sudoers.rb.erb @@ -1,4 +1,4 @@ -#!/opt/vagrant/embedded/bin/ruby +#!<%= cmd_paths['ruby'] %> # Automatically created by vagrant-lxc class Whitelist