From af9e8ba1910870b13397b3490c0d0965ffd43b04 Mon Sep 17 00:00:00 2001 From: qtwrk Date: Wed, 14 Mar 2018 01:04:01 +0100 Subject: [PATCH 1/2] fix epel issue in some VPS fix epel issue in some VPS --- install-cn.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install-cn.sh b/install-cn.sh index 0c4dace41..e60a799f5 100644 --- a/install-cn.sh +++ b/install-cn.sh @@ -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 From c5be76ed3a8d22c869a08a5c540ed31201a4910e Mon Sep 17 00:00:00 2001 From: qtwrk Date: Wed, 14 Mar 2018 01:04:42 +0100 Subject: [PATCH 2/2] fix epel issue in some VPS fix epel issue in some VPS --- install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 2456437c2..94828320d 100644 --- a/install.sh +++ b/install.sh @@ -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 @@ -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 \ No newline at end of file +python install.py $server_ip