Skip to content

Commit

Permalink
Update OS support
Browse files Browse the repository at this point in the history
  • Loading branch information
hwdsl2 committed Jun 7, 2024
1 parent dd14343 commit fafb5b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions openvpn-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ Supported distros are Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS, Fedora, op
}

check_os_ver() {
if [[ "$os" == "ubuntu" && "$os_version" -lt 1804 ]]; then
exiterr "Ubuntu 18.04 or higher is required to use this installer.
if [[ "$os" == "ubuntu" && "$os_version" -lt 2004 ]]; then
exiterr "Ubuntu 20.04 or higher is required to use this installer.
This version of Ubuntu is too old and unsupported."
fi

if [[ "$os" == "debian" && "$os_version" -lt 9 ]]; then
exiterr "Debian 9 or higher is required to use this installer.
if [[ "$os" == "debian" && "$os_version" -lt 10 ]]; then
exiterr "Debian 10 or higher is required to use this installer.
This version of Debian is too old and unsupported."
fi

Expand Down

0 comments on commit fafb5b9

Please sign in to comment.