Look for "redhat-release" for Fedora
This commit is contained in:
parent
2665231363
commit
e739e68e30
|
@ -17,6 +17,9 @@ _site/*
|
||||||
.yardoc/
|
.yardoc/
|
||||||
doc/
|
doc/
|
||||||
|
|
||||||
|
# Rubinius
|
||||||
|
*.rbc
|
||||||
|
|
||||||
# IDE junk
|
# IDE junk
|
||||||
.idea/*
|
.idea/*
|
||||||
*.iml
|
*.iml
|
|
@ -11,9 +11,9 @@ module Vagrant
|
||||||
return nil if !Util::Platform.linux?
|
return nil if !Util::Platform.linux?
|
||||||
return Arch if File.exist?("/etc/rc.conf") && File.exist?("/etc/pacman.conf")
|
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
|
# 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/
|
return Fedora if f.gets =~ /^Fedora/
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue