Skip to content

Commit

Permalink
adjustConfigs: delete lines with resolv-conf
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
jfessard committed Jan 7, 2019
1 parent 07005fe commit a674a8f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions openvpn/adjustConfigs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 <provider-folder>"
}

# 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
Expand All @@ -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"

0 comments on commit a674a8f

Please sign in to comment.