From dbe667320009b6db9a7ab10417cf389469b3cdb9 Mon Sep 17 00:00:00 2001 From: Teddysun Date: Mon, 14 Aug 2017 20:56:27 +0900 Subject: [PATCH] update EPEL repo installation Signed-off-by: Teddysun --- l2tp.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/l2tp.sh b/l2tp.sh index f93f3ac..ce3411a 100644 --- a/l2tp.sh +++ b/l2tp.sh @@ -308,8 +308,10 @@ install_l2tp(){ compile_install elif check_sys packageManager yum; then echo "Adding the EPEL repository..." - yum -y install epel-release + yum -y install epel-release yum-utils [ ! -f /etc/yum.repos.d/epel.repo ] && echo "Install EPEL repository failed, please check it." && exit 1 + yum-config-manager --enable epel + echo "Adding the EPEL repository complete..." if centosversion 7; then yum -y install ppp libreswan xl2tpd firewalld