94e175dc07
Sudoers now creates a safe wrapper script that performs sanity checks on sudo : * wrapper generated in /usr/local/bin (name includes version to allow multiple wrappers on the same system) * sudoers command now generates a one-line file in /etc/sudoers.d * SudoWrapper use the new wrapper * Removed unused Config#validate method
14 lines
308 B
Ruby
14 lines
308 B
Ruby
require "vagrant-lxc/version"
|
|
require "vagrant-lxc/plugin"
|
|
|
|
module Vagrant
|
|
module LXC
|
|
def self.source_root
|
|
@source_root ||= Pathname.new(File.dirname(__FILE__)).join('..').expand_path
|
|
end
|
|
|
|
def self.sudo_wrapper_path
|
|
"/usr/local/bin/vagrant-lxc-wrapper-#{VERSION}"
|
|
end
|
|
end
|
|
end
|