diff options
author | Roger Gonzalez <roger@rogs.me> | 2023-01-24 15:07:26 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2023-01-24 15:07:26 -0300 |
commit | bde25aae1549606958b397a010fcc8843d8f70c0 (patch) | |
tree | 4d0b0cb471a39da9b0dbe65d518c34814124247b /install.sh | |
parent | 21dbfa348042a73570f98e3a4c84e27f1f55fbfe (diff) |
Added SERVER_REGION fix to selected VPNs
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |