command/sudoers: Use Vagrant's ruby for the sudoers file

This makes things work on systems that don't have a global ruby
installation in place and fix GH-289
This commit is contained in:
Fabio Rehm 2014-06-08 23:34:35 -03:00
parent 3e22f424e6
commit b4376ef995
2 changed files with 5 additions and 1 deletions

View file

@ -9,8 +9,12 @@ IMPROVEMENTS:
BUG FIXES: BUG FIXES:
- Escape space characters for synced folders [[GH-291]] - Escape space characters for synced folders [[GH-291]]
- Use Vagrant's ruby on the sudoers file so that it works on systems that don't
have a global ruby installation [[GH-289]]
[GH-291]: https://github.com/fgrehm/vagrant-lxc/issues/291 [GH-291]: https://github.com/fgrehm/vagrant-lxc/issues/291
[GH-289]: https://github.com/fgrehm/vagrant-lxc/issues/289
## [1.0.0.alpha.2](https://github.com/fgrehm/vagrant-lxc/compare/v1.0.0.alpha.1...v1.0.0.alpha.2) (May 13, 2014) ## [1.0.0.alpha.2](https://github.com/fgrehm/vagrant-lxc/compare/v1.0.0.alpha.1...v1.0.0.alpha.2) (May 13, 2014)

View file

@ -44,7 +44,7 @@ module Vagrant
# lands into core # lands into core
def create_wrapper! def create_wrapper!
wrapper = Tempfile.new('lxc-wrapper').tap do |file| wrapper = Tempfile.new('lxc-wrapper').tap do |file|
file.puts "#!/usr/bin/env ruby" file.puts "#!/opt/vagrant/embedded/bin/ruby"
file.puts "# Automatically created by vagrant-lxc" file.puts "# Automatically created by vagrant-lxc"
file.puts <<-EOF file.puts <<-EOF
class Whitelist class Whitelist