#1639 Better Solaris OS detection (use portable method that actually works)
This commit is contained in:
parent
ccfd321ef9
commit
c47522658e
|
@ -7,7 +7,7 @@ module VagrantPlugins
|
|||
# Contributed by Blake Irvin <b.irvin@modcloth.com>
|
||||
class Guest < Vagrant.plugin("2", :guest)
|
||||
def detect?(machine)
|
||||
machine.communicate.test("uname -o | grep Solaris")
|
||||
machine.communicate.test("uname -s | grep SunOS")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue