From e9903422cc0b10db52290126f7caef675cb2a72c Mon Sep 17 00:00:00 2001 From: Matthew Date: Sat, 5 Oct 2013 18:01:27 +0100 Subject: [PATCH] detect Red Hat Enterprise Linux 4 and Oracle Linux --- plugins/hosts/redhat/host.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/hosts/redhat/host.rb b/plugins/hosts/redhat/host.rb index ba8df2761..f6a92401a 100644 --- a/plugins/hosts/redhat/host.rb +++ b/plugins/hosts/redhat/host.rb @@ -13,9 +13,10 @@ module VagrantPlugins if release_file.exist? release_file.open("r:ISO-8859-1:UTF-8") do |f| contents = f.gets - return true if contents =~ /^Fedora/ - return true if contents =~ /^CentOS/ - return true if contents =~ /^Red Hat Enterprise Linux Server/ + return true if contents =~ /^Fedora/ # Fedora + return true if contents =~ /^CentOS/ # CentOS + return true if contents =~ /^Enterprise Linux Enterprise Linux/ # Oracle Linux < 5.3 + return true if contents =~ /^Red Hat Enterprise Linux/ # Red Hat Enterprise Linux and Oracle Linux >= 5.3 end end