From 4eb1dd3f1067dc4e964845fd0fd3df8edc9f0376 Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Sun, 28 Jul 2024 15:44:32 -0500 Subject: [PATCH] Update OS support - Remove CentOS 7, which reached EOL on June 30, 2024. --- wireguard-install.sh | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/wireguard-install.sh b/wireguard-install.sh index 3ba5731..8a2b84b 100644 --- a/wireguard-install.sh +++ b/wireguard-install.sh @@ -77,8 +77,8 @@ This version of Ubuntu is too old and unsupported." exiterr "Debian 11 or higher is required to use this installer. This version of Debian is too old and unsupported." fi - if [[ "$os" == "centos" && "$os_version" -lt 7 ]]; then - exiterr "CentOS 7 or higher is required to use this installer. + if [[ "$os" == "centos" && "$os_version" -lt 8 ]]; then + exiterr "CentOS 8 or higher is required to use this installer. This version of CentOS is too old and unsupported." fi } @@ -650,14 +650,6 @@ install_pkgs() { yum -y -q install wireguard-tools qrencode $firewall >/dev/null 2>&1 ) || exiterr3 mkdir -p /etc/wireguard/ - elif [[ "$os" == "centos" && "$os_version" -eq 7 ]]; then - ( - set -x - yum -y -q install epel-release https://www.elrepo.org/elrepo-release-7.el7.elrepo.noarch.rpm >/dev/null - yum -y -q install yum-plugin-elrepo >/dev/null 2>&1 - yum -y -q install kmod-wireguard wireguard-tools qrencode $firewall >/dev/null 2>&1 - ) || exiterr3 - mkdir -p /etc/wireguard/ elif [[ "$os" == "fedora" ]]; then ( set -x