From 2cce4599e2812ae2556258aad14cc2e223963259 Mon Sep 17 00:00:00 2001 From: Nyr Date: Mon, 16 Aug 2021 20:22:36 +0200 Subject: [PATCH] Check for wget or curl --- openvpn-install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/openvpn-install.sh b/openvpn-install.sh index 4df5783..d2255d5 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -99,6 +99,13 @@ new_client () { } if [[ ! -e /etc/openvpn/server/server.conf ]]; then + # Detect some Debian minimal setups where neither wget nor curl are installed + if ! hash wget 2>/dev/null && ! hash curl 2>/dev/null; then + echo "Wget is required to use this installer." + read -n1 -r -p "Press any key to install Wget and continue..." + apt-get update + apt-get install -y wget + fi clear echo 'Welcome to this OpenVPN road warrior installer!' # If system has a single IPv4, it is selected automatically. Else, ask the user