removed resolv override env option. readme fixup

This commit is contained in:
Kristian Haugene
2015-09-10 22:37:03 +02:00
parent cb5b95ded9
commit 3c56a7ce08
3 changed files with 25 additions and 40 deletions

View File

@@ -34,13 +34,6 @@ else
OPENVPN_CONFIG=/etc/openvpn/$vpn_provider/default.ovpn
fi
# override resolv.conf
if [ "$RESOLV_OVERRIDE" != "**None**" ];
then
echo "Overriding resolv.conf..."
printf "$RESOLV_OVERRIDE" > /etc/resolv.conf
fi
# add OpenVPN user/pass
if [ "${OPENVPN_USERNAME}" = "**None**" ] || [ "${OPENVPN_PASSWORD}" = "**None**" ] ; then
echo "PIA credentials not set. Exiting."