vagrant-lxc-wrapper: Use correct ruby interpreter
Previously, we hardcoded to using the ruby binary in /opt/vagrant[..]. On some systems, this path is incorrect, so instead we use the path of the interpreter that is executing the `vagrant lxc sudoers` command.
This commit is contained in:
parent
c9cd671a32
commit
05fdb3e000
2 changed files with 2 additions and 1 deletions
|
@ -83,6 +83,7 @@ module Vagrant
|
||||||
hash[cmd] = `which #{cmd}`.strip
|
hash[cmd] = `which #{cmd}`.strip
|
||||||
end
|
end
|
||||||
hash['lxc_bin'] = Pathname(`which lxc-create`.strip).parent.to_s
|
hash['lxc_bin'] = Pathname(`which lxc-create`.strip).parent.to_s
|
||||||
|
hash['ruby'] = Gem.ruby
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/opt/vagrant/embedded/bin/ruby
|
#!<%= cmd_paths['ruby'] %>
|
||||||
# Automatically created by vagrant-lxc
|
# Automatically created by vagrant-lxc
|
||||||
|
|
||||||
class Whitelist
|
class Whitelist
|
||||||
|
|
Loading…
Reference in a new issue