1
0
Fork 0
mirror of https://github.com/Nyr/openvpn-install.git synced 2025-04-04 21:23:31 +03:00
This commit is contained in:
TimForbes 2023-04-10 09:09:53 +02:00
parent 55098fb853
commit b60aef4bd8

View file

@ -53,7 +53,7 @@ Supported distros are Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS and Fedora.
esac
function check_os_version {
function check_os_version () {
local required_version=$1
if [[ "$os_version" -lt "$required_version" ]]; then
echo "$os_name $required_version or higher is required to use this installer.
@ -112,8 +112,6 @@ new_client () {
} > ~/"$client".ovpn
}
#!/bin/bash
if [[ ! -e /etc/openvpn/server/server.conf ]]; then
# Check if wget or curl are installed, and install wget if neither is installed
if ! command -v wget &>/dev/null && ! command -v curl &>/dev/null; then