Merge pull request #7524 from nishidayuya/fix_ubuntu_guest_detection
A more reliable way to detect Ubuntu
This commit is contained in:
commit
30692fc857
|
@ -2,7 +2,7 @@ module VagrantPlugins
|
|||
module GuestUbuntu
|
||||
class Guest < Vagrant.plugin("2", :guest)
|
||||
def detect?(machine)
|
||||
machine.communicate.test("[ -x /usr/bin/lsb_release ] && /usr/bin/lsb_release -i 2>/dev/null | grep Ubuntu")
|
||||
machine.communicate.test("test -r /etc/os-release && . /etc/os-release && test xubuntu = x$ID")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue