Update wireguard.sh

This commit is contained in:
Teddysun 2019-10-27 14:31:24 +09:00
parent 0015f65b98
commit f6c309404d
No known key found for this signature in database
GPG Key ID: 09BD4C080AD6C46D

View File

@ -213,7 +213,12 @@ install_wg_1() {
_error_detect "dnf -y install wireguard-dkms wireguard-tools"
;;
centos)
if [ -n "$(_os_ver)" -a "$(_os_ver)" -eq 7 ]; then
_error_detect "curl -Lso /etc/yum.repos.d/wireguard.repo https://copr.fedorainfracloud.org/coprs/jdoss/wireguard/repo/epel-7/jdoss-wireguard-epel-7.repo"
fi
if [ -n "$(_os_ver)" -a "$(_os_ver)" -eq 8 ]; then
_error_detect "curl -Lso /etc/yum.repos.d/wireguard.repo https://copr.fedorainfracloud.org/coprs/jdoss/wireguard/repo/epel-8/jdoss-wireguard-epel-8.repo"
fi
_error_detect "yum -y install epel-release"
_error_detect "yum -y install kernel-devel"
_error_detect "yum -y install kernel-headers"