Look for "redhat-release" for Fedora

This commit is contained in:
Mitchell Hashimoto 2011-08-28 14:13:54 -07:00
parent 2665231363
commit e739e68e30
2 changed files with 5 additions and 2 deletions

3
.gitignore vendored
View File

@ -17,6 +17,9 @@ _site/*
.yardoc/
doc/
# Rubinius
*.rbc
# IDE junk
.idea/*
*.iml

View File

@ -11,9 +11,9 @@ module Vagrant
return nil if !Util::Platform.linux?
return Arch if File.exist?("/etc/rc.conf") && File.exist?("/etc/pacman.conf")
if File.exist?("/etc/redhat-version")
if File.exist?("/etc/redhat-release")
# Check if we have a known redhat release
File.open("/etc/redhat-version") do |f|
File.open("/etc/redhat-release") do |f|
return Fedora if f.gets =~ /^Fedora/
end
end