From bde25aae1549606958b397a010fcc8843d8f70c0 Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Tue, 24 Jan 2023 15:07:26 -0300 Subject: Added SERVER_REGION fix to selected VPNs --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3