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 df2b3fd commit d7e1714
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions openvpn-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,11 @@ This version of Ubuntu is too old and unsupported."
exiterr "Debian 10 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
if ! grep -qs "Amazon Linux release 2 " /etc/system-release; then
exiterr "CentOS 8 or higher is required to use this installer.
This version of CentOS is too old and unsupported."
fi
fi
}

Expand Down

0 comments on commit d7e1714

Please sign in to comment.