1
0
Fork 0
mirror of https://github.com/Nyr/openvpn-install.git synced 2025-04-04 21:23:31 +03:00

Added support for Mint maybe other Ubuntu variants

This commit is contained in:
Adam Queler 2024-09-23 17:20:25 -04:00
parent 52d545081a
commit cb7da1343a

View file

@ -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