summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Gonzalez <roger@rogs.me>2023-01-24 15:07:26 -0300
committerRoger Gonzalez <roger@rogs.me>2023-01-24 15:07:26 -0300
commitbde25aae1549606958b397a010fcc8843d8f70c0 (patch)
tree4d0b0cb471a39da9b0dbe65d518c34814124247b
parent21dbfa348042a73570f98e3a4c84e27f1f55fbfe (diff)
Added SERVER_REGION fix to selected VPNs
-rwxr-xr-xinstall.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/install.sh b/install.sh
index 3023d00..eb2e482 100755
--- a/install.sh
+++ b/install.sh
@@ -185,7 +185,8 @@ if [ $setup_vpn == "y" ]; then
echo
echo "What country do you want to use?"
- read -p "You can check the countries list for your VPN here: https://github.com/qdm12/gluetun/wiki/$vpn_service#servers [brazil]: " vpn_country
+ echo "If you are using: NordVPN, Perfect Privacy, Private Internet Access, VyprVPN, WeVPN or Windscribe, then input a region"
+ read -p "You can check the countries/regions list for your VPN here: https://github.com/qdm12/gluetun/wiki/$vpn_service#servers [brazil]: " vpn_country
vpn_country=${vpn_country:-"brazil"}
fi
@@ -230,6 +231,9 @@ if [ $setup_vpn == "y" ]; then
sed -i -e "s;ports: # qbittorrent;#port: # qbittorrent;g" $filename
sed -i -e "s;- 8080:8080 # qbittorrent;#- 8080:8080 # qbittorrent;g" $filename
sed -i -e "s;#- 8080:8080/tcp # gluetun;- 8080:8080/tcp # gluetun;g" $filename
+ if echo "nordvpn perfect privacy private internet access vyprvpn wevpn windscribe" | grep -qw "$vpn_service"; then
+ sed -i -e "s;SERVER_COUNTRIES;SERVER_REGIONS;g" $filename
+ fi
fi
# Set yams script