Remove version suffix from generated sudoers commands

This commit is contained in:
Fabio Rehm 2014-09-22 23:07:12 -03:00
parent 86b169d358
commit 8ffc9ef92a
3 changed files with 8 additions and 2 deletions

View file

@ -1,5 +1,11 @@
## [1.0.0](https://github.com/fgrehm/vagrant-lxc/compare/v1.0.0.alpha.3...v1.0.0) (Sep 22, 2014)
BACKWARDS INCOMPATIBILITIES:
- Remove plugin version from config file name generated by the `vagrant lxc sudoers`
command. Manual removal of `/usr/local/bin/vagrant-lxc-wrapper-*` / `/etc/sudoers.d/vagrant-lxc-*`
files are required.
IMPROVEMENTS:
- Add support for specifying the `--strip-parameters` used by the [default template](scripts/lxc-template)

View file

@ -8,7 +8,7 @@ module Vagrant
end
def self.sudo_wrapper_path
"/usr/local/bin/vagrant-lxc-wrapper-#{VERSION}"
"/usr/local/bin/vagrant-lxc-wrapper"
end
end
end

View file

@ -36,7 +36,7 @@ module Vagrant
end
def sudoers_path
"/etc/sudoers.d/vagrant-lxc-#{Vagrant::LXC::VERSION.gsub( /\./, '-')}"
"/etc/sudoers.d/vagrant-lxc"
end
private