From 3ad36b0f907c48e9f48a963b526536af6e4817e3 Mon Sep 17 00:00:00 2001 From: Andrew Prokhorenkov Date: Thu, 5 Mar 2020 08:38:08 -0600 Subject: [PATCH] Update wireguard-install.sh Co-Authored-By: Stanislas --- wireguard-install.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/wireguard-install.sh b/wireguard-install.sh index 72d21f1..5408cb1 100644 --- a/wireguard-install.sh +++ b/wireguard-install.sh @@ -94,13 +94,12 @@ elif [[ "$OS" = 'debian' ]]; then apt-get install -y "linux-headers-$(uname -r)" apt-get install -y wireguard iptables resolvconf qrencode elif [[ "$OS" = 'fedora' ]]; then - if [[ "$VERSION_ID" -ge 32 ]]; then - dnf install -y wireguard-tools iptables qrencode - else + if [[ "$VERSION_ID" -lt 32 ]]; then dnf install -y dnf-plugins-core dnf copr enable -y jdoss/wireguard - dnf install -y wireguard-dkms wireguard-tools iptables qrencode + dnf install -y wireguard-dkms fi + dnf install -y wireguard-tools iptables qrencode 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 yum -y install epel-release