This commit is contained in:
parent
55098fb853
commit
b60aef4bd8
@ -53,7 +53,7 @@ Supported distros are Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS and Fedora.
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
function check_os_version {
|
function check_os_version () {
|
||||||
local required_version=$1
|
local required_version=$1
|
||||||
if [[ "$os_version" -lt "$required_version" ]]; then
|
if [[ "$os_version" -lt "$required_version" ]]; then
|
||||||
echo "$os_name $required_version or higher is required to use this installer.
|
echo "$os_name $required_version or higher is required to use this installer.
|
||||||
@ -112,8 +112,6 @@ new_client () {
|
|||||||
} > ~/"$client".ovpn
|
} > ~/"$client".ovpn
|
||||||
}
|
}
|
||||||
|
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
if [[ ! -e /etc/openvpn/server/server.conf ]]; then
|
if [[ ! -e /etc/openvpn/server/server.conf ]]; then
|
||||||
# Check if wget or curl are installed, and install wget if neither is installed
|
# 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
|
if ! command -v wget &>/dev/null && ! command -v curl &>/dev/null; then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user