mirror of
https://github.com/angristan/wireguard-install.git
synced 2024-11-01 03:02:35 +00:00
add Fedora 32 native wireguard
This commit is contained in:
parent
b9da4d03cd
commit
c15fafbaa8
@ -24,7 +24,8 @@ if [[ -e /etc/debian_version ]]; then
|
|||||||
source /etc/os-release
|
source /etc/os-release
|
||||||
OS=$ID # debian or ubuntu
|
OS=$ID # debian or ubuntu
|
||||||
elif [[ -e /etc/fedora-release ]]; then
|
elif [[ -e /etc/fedora-release ]]; then
|
||||||
OS=fedora
|
source /etc/os-release
|
||||||
|
OS=$ID
|
||||||
elif [[ -e /etc/centos-release ]]; then
|
elif [[ -e /etc/centos-release ]]; then
|
||||||
OS=centos
|
OS=centos
|
||||||
elif [[ -e /etc/arch-release ]]; then
|
elif [[ -e /etc/arch-release ]]; then
|
||||||
@ -93,9 +94,13 @@ elif [[ "$OS" = 'debian' ]]; then
|
|||||||
apt-get install -y "linux-headers-$(uname -r)"
|
apt-get install -y "linux-headers-$(uname -r)"
|
||||||
apt-get install -y wireguard iptables resolvconf qrencode
|
apt-get install -y wireguard iptables resolvconf qrencode
|
||||||
elif [[ "$OS" = 'fedora' ]]; then
|
elif [[ "$OS" = 'fedora' ]]; then
|
||||||
|
if [[ "$VERSION_ID" -ge 32 ]]; then
|
||||||
|
dnf install -y wireguard-tools iptables qrencode
|
||||||
|
else
|
||||||
dnf install -y dnf-plugins-core
|
dnf install -y dnf-plugins-core
|
||||||
dnf copr enable -y jdoss/wireguard
|
dnf copr enable -y jdoss/wireguard
|
||||||
dnf install -y wireguard-dkms wireguard-tools iptables qrencode
|
dnf install -y wireguard-dkms wireguard-tools iptables qrencode
|
||||||
|
fi
|
||||||
elif [[ "$OS" = 'centos' ]]; then
|
elif [[ "$OS" = 'centos' ]]; then
|
||||||
curl -Lo /etc/yum.repos.d/wireguard.repo https://copr.fedorainfracloud.org/coprs/jdoss/wireguard/repo/epel-7/jdoss-wireguard-epel-7.repo
|
curl -Lo /etc/yum.repos.d/wireguard.repo https://copr.fedorainfracloud.org/coprs/jdoss/wireguard/repo/epel-7/jdoss-wireguard-epel-7.repo
|
||||||
yum -y install epel-release
|
yum -y install epel-release
|
||||||
|
Loading…
Reference in New Issue
Block a user