mirror of
https://github.com/Nyr/openvpn-install.git
synced 2024-11-23 21:46:08 +03:00
Check for wget or curl
This commit is contained in:
parent
4f737ac2f8
commit
2cce4599e2
@ -99,6 +99,13 @@ new_client () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if [[ ! -e /etc/openvpn/server/server.conf ]]; then
|
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
|
clear
|
||||||
echo 'Welcome to this OpenVPN road warrior installer!'
|
echo 'Welcome to this OpenVPN road warrior installer!'
|
||||||
# If system has a single IPv4, it is selected automatically. Else, ask the user
|
# If system has a single IPv4, it is selected automatically. Else, ask the user
|
||||||
|
Loading…
Reference in New Issue
Block a user