From a674a8f07e57c1e645e8009b292df2cd3cfba837 Mon Sep 17 00:00:00 2001 From: Julian Fessard Date: Mon, 7 Jan 2019 00:25:59 -0800 Subject: [PATCH] adjustConfigs: delete lines with resolv-conf Mullvad ovpn configs had up and down calls to a script, that was removed, since it was causing issues on connect (transmission wasn't launching, meaning the connection wasn't coming up) --- openvpn/adjustConfigs.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/openvpn/adjustConfigs.sh b/openvpn/adjustConfigs.sh index f5c64f5d5..f25137716 100755 --- a/openvpn/adjustConfigs.sh +++ b/openvpn/adjustConfigs.sh @@ -13,14 +13,14 @@ normal=$(tput sgr0) # Just need to double check that the default.ovpn is still there and that the diff to origin looks reasonable. # -display_usage() { +display_usage() { echo "${bold}Hint: read the script before using it${normal}" echo "If you just forgot: ./adjustConfigs.sh " } -# if no arguments supplied, display usage -if [ $# -lt 1 ] -then +# if no arguments supplied, display usage +if [ $# -lt 1 ] +then display_usage exit 1 fi @@ -45,6 +45,9 @@ for configFile in $provider/*.ovpn; # Set user-pass file location sed -i "s/auth-user-pass.*/auth-user-pass \/config\/openvpn-credentials.txt/g" "$configFile" + # Remove up/down resolv-conf script calls (Mullvad) + sed -i "/update-resolv-conf/d" "$configFile" + done echo "Updated all .ovpn files in folder $provider"