Skip to content

Commit

Permalink
guest: redhat: use yum to install epel-release
Browse files Browse the repository at this point in the history
Originally the epel-release rpm was not in the main repos for CentOS
and thus we needed to grab them directly from a known url. In el7 they
started putting them in the main repos and I just confirmed that
epel-release is in the main repos for el6 as well so there is no reason
not to use yum now, which will use the mirrors to pull in epel-release.

Fixes #101
Fixes #108
  • Loading branch information
dustymabe committed Mar 15, 2020
1 parent 1a7a0b0 commit cd31a47
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/vagrant-sshfs/cap/guest/redhat/sshfs_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,7 @@ def self.epel_installed(machine)
end

def self.epel_install(machine)
case machine.guest.capability("flavor")
when :rhel_7
machine.communicate.sudo("rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm")
when :rhel # rhel6
machine.communicate.sudo("rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm")
end
machine.communicate.sudo("yum -y install epel-release")
end
end
end
Expand Down

0 comments on commit cd31a47

Please sign in to comment.