mirror of
https://github.com/teddysun/across.git
synced 2025-10-29 07:55:33 +08:00
4
l2tp.sh
4
l2tp.sh
@@ -308,8 +308,10 @@ install_l2tp(){
|
|||||||
compile_install
|
compile_install
|
||||||
elif check_sys packageManager yum; then
|
elif check_sys packageManager yum; then
|
||||||
echo "Adding the EPEL repository..."
|
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
|
[ ! -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
|
if centosversion 7; then
|
||||||
yum -y install ppp libreswan xl2tpd firewalld
|
yum -y install ppp libreswan xl2tpd firewalld
|
||||||
|
|||||||
Reference in New Issue
Block a user