1
0
mirror of synced 2024-11-29 16:16:03 +03:00

Improve Debian 7 workaround note

This commit is contained in:
hwdsl2 2016-06-02 11:09:17 -05:00
parent f0824298dc
commit 96d6f4b3e3
2 changed files with 13 additions and 12 deletions

View File

@ -72,6 +72,7 @@ cat <<'EOF'
IMPORTANT: Workaround required for Debian 7 (Wheezy). IMPORTANT: Workaround required for Debian 7 (Wheezy).
First, run the script at: https://git.io/vpndebian7 First, run the script at: https://git.io/vpndebian7
Continue only after completing this workaround. Continue only after completing this workaround.
EOF EOF
fi fi

View File

@ -80,6 +80,18 @@ if [ -z "$VPN_IPSEC_PSK" ] || [ -z "$VPN_USER" ] || [ -z "$VPN_PASSWORD" ]; then
exit 1 exit 1
fi fi
if [ "$(sed 's/\..*//' /etc/debian_version)" = "7" ]; then
cat <<'EOF'
IMPORTANT: Workaround required for Debian 7 (Wheezy).
First, run the script at: https://git.io/vpndebian7
If not already done so, press Ctrl-C to interrupt now.
Pausing for 60 seconds...
EOF
sleep 60
fi
echo "VPN setup in progress... Please be patient." echo "VPN setup in progress... Please be patient."
echo echo
@ -95,18 +107,6 @@ apt-get -yqq update
apt-get -yq install wget dnsutils openssl apt-get -yq install wget dnsutils openssl
apt-get -yq install iproute gawk grep sed net-tools apt-get -yq install iproute gawk grep sed net-tools
if [ "$(sed 's/\..*//' /etc/debian_version)" = "7" ]; then
cat <<'EOF'
IMPORTANT: Workaround required for Debian 7 (Wheezy).
First, run the script at: https://git.io/vpndebian7
If not already done so, press Ctrl-C to interrupt.
Pausing for 60 seconds...
EOF
sleep 60
fi
cat <<'EOF' cat <<'EOF'
Trying to auto discover IPs of this server... Trying to auto discover IPs of this server...