Merge pull request #2824 from masteinhauser/patch-1
guests/solaris: More specific Solaris <11 detection.
This commit is contained in:
commit
1d2da09953
|
@ -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 -s | grep SunOS")
|
||||
machine.communicate.test("uname -sr | grep SunOS | grep -v 5.11")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -8,7 +8,7 @@ module VagrantPlugins
|
|||
module GuestSolaris11
|
||||
class Guest < Vagrant.plugin("2", :guest)
|
||||
def detect?(machine)
|
||||
machine.communicate.test("uname -s | grep SunOS")
|
||||
machine.communicate.test("uname -sr | grep 'SunOS 5.11'")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue