mirror of
https://github.com/teddysun/across.git
synced 2025-01-19 06:19:35 +08:00
Update wireguard.sh
This commit is contained in:
parent
0015f65b98
commit
f6c309404d
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user