From cb7da1343a9e85ccc81ba1d2304fe0981c0708a7 Mon Sep 17 00:00:00 2001 From: Adam Queler Date: Mon, 23 Sep 2024 17:20:25 -0400 Subject: [PATCH] Added support for Mint maybe other Ubuntu variants --- openvpn-install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 3de597b..48c52ba 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -39,9 +39,12 @@ Supported distros are Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS and Fedora. fi if [[ "$os" == "ubuntu" && "$os_version" -lt 2204 ]]; then - echo "Ubuntu 22.04 or higher is required to use this installer. + if [[ "$os" == "ubuntu" && $(grep 'UBUNTU_CODENAME' /etc/os-release | cut -d '=' -f 2) < 'focal' ]]; then + + echo "Ubuntu 22.04 or higher is required to use this installer. This version of Ubuntu is too old and unsupported." - exit + exit + fi fi if [[ "$os" == "debian" ]]; then