Skip to content

Commit

Permalink
Update OS support
Browse files Browse the repository at this point in the history
- Remove CentOS 7, which reached EOL on June 30, 2024.
  • Loading branch information
hwdsl2 committed Jul 28, 2024
1 parent 9ae2394 commit 4eb1dd3
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions wireguard-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4eb1dd3

Please sign in to comment.