parent
514a93411f
commit
2a065111b1
1 changed files with 7 additions and 0 deletions
|
@ -176,6 +176,13 @@ EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ ! -e /etc/wireguard/wg0.conf ]]; then
|
if [[ ! -e /etc/wireguard/wg0.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 WireGuard road warrior installer!'
|
echo 'Welcome to this WireGuard 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…
Add table
Reference in a new issue