Skip to content

Commit

Permalink
fix epel issue in some VPS
Browse files Browse the repository at this point in the history
fix epel issue in some VPS
  • Loading branch information
qtwrk authored Mar 14, 2018
1 parent af9e8ba commit c5be76e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/bin/bash
yum autoremove epel-release -y
rm -f /etc/yum.repos.d/epel.repo
rm -f /etc/yum.repos.d/epel.repo.rpmsave
yum install epel-release -y
#some provider's centos7 template come with incorrect or misconfigured epel.repo
yum clean all
yum update -y
yum install wget which curl -y
Expand All @@ -9,4 +14,4 @@ tar xzvf install.tar.gz
cd install
chmod +x install.py
server_ip="$(wget -qO- http://whatismyip.akamai.com/)"
python install.py $server_ip
python install.py $server_ip

0 comments on commit c5be76e

Please sign in to comment.