Skip to content

Commit 4eb1dd3

Browse files
committed
Update OS support
- Remove CentOS 7, which reached EOL on June 30, 2024.
1 parent 9ae2394 commit 4eb1dd3

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

wireguard-install.sh

+2-10
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ This version of Ubuntu is too old and unsupported."
7777
exiterr "Debian 11 or higher is required to use this installer.
7878
This version of Debian is too old and unsupported."
7979
fi
80-
if [[ "$os" == "centos" && "$os_version" -lt 7 ]]; then
81-
exiterr "CentOS 7 or higher is required to use this installer.
80+
if [[ "$os" == "centos" && "$os_version" -lt 8 ]]; then
81+
exiterr "CentOS 8 or higher is required to use this installer.
8282
This version of CentOS is too old and unsupported."
8383
fi
8484
}
@@ -650,14 +650,6 @@ install_pkgs() {
650650
yum -y -q install wireguard-tools qrencode $firewall >/dev/null 2>&1
651651
) || exiterr3
652652
mkdir -p /etc/wireguard/
653-
elif [[ "$os" == "centos" && "$os_version" -eq 7 ]]; then
654-
(
655-
set -x
656-
yum -y -q install epel-release https://www.elrepo.org/elrepo-release-7.el7.elrepo.noarch.rpm >/dev/null
657-
yum -y -q install yum-plugin-elrepo >/dev/null 2>&1
658-
yum -y -q install kmod-wireguard wireguard-tools qrencode $firewall >/dev/null 2>&1
659-
) || exiterr3
660-
mkdir -p /etc/wireguard/
661653
elif [[ "$os" == "fedora" ]]; then
662654
(
663655
set -x

0 commit comments

Comments
 (0)