Testing VPN in install.sh
This commit is contained in:
parent
e6ae5d3b3b
commit
927d1b34ec
@ -28,9 +28,8 @@ services:
|
|||||||
- <media_folder>/downloads:/downloads
|
- <media_folder>/downloads:/downloads
|
||||||
- <install_location>/config/qbittorrent:/config
|
- <install_location>/config/qbittorrent:/config
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
network_mode: "service:gluetun"
|
#port: 8080:8080
|
||||||
depends_on:
|
#network_mode: "service:gluetun"
|
||||||
- gluetun
|
|
||||||
|
|
||||||
# Sonarr is used to query, add downloads to the download queue and index TV shows
|
# Sonarr is used to query, add downloads to the download queue and index TV shows
|
||||||
sonarr:
|
sonarr:
|
||||||
@ -97,6 +96,7 @@ services:
|
|||||||
gluetun:
|
gluetun:
|
||||||
image: qmcgaw/gluetun
|
image: qmcgaw/gluetun
|
||||||
container_name: gluetun
|
container_name: gluetun
|
||||||
|
profiles: donotstart
|
||||||
cap_add:
|
cap_add:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
devices:
|
devices:
|
||||||
@ -112,3 +112,4 @@ services:
|
|||||||
- VPN_SERVICE_PROVIDER=mullvad
|
- VPN_SERVICE_PROVIDER=mullvad
|
||||||
- VPN_TYPE=openvpn
|
- VPN_TYPE=openvpn
|
||||||
- OPENVPN_USER=<mullvad_user>
|
- OPENVPN_USER=<mullvad_user>
|
||||||
|
- SERVER_COUNTRIES=<mullvad_country>
|
||||||
|
22
install.sh
22
install.sh
@ -109,6 +109,20 @@ if [ $media_folder_correct == "n" ]; then
|
|||||||
send_error_message "Media folder is not correct. Please, fix it and run the script again"
|
send_error_message "Media folder is not correct. Please, fix it and run the script again"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Adding the VPN
|
||||||
|
echo "Time to setup the VPN."
|
||||||
|
echo "The automatic installer only works with Mullvad, but you can setup many other VPNs manually."
|
||||||
|
echo "If you want to use any other VPN, choose \"N\""
|
||||||
|
read -p "Do you want to configure Mullvad VPN? [Y/n]: " setup_vpn
|
||||||
|
setup_vpn=${setup_vpn:-"y"}
|
||||||
|
|
||||||
|
if [ $setup_vpn == "y" ]; then
|
||||||
|
read -p "What's your Mullvad username? (without spaces): " mullvad_user
|
||||||
|
echo "What country do you want to use?"
|
||||||
|
read -p "You can check the countries list here: https://mullvad.net/en/servers/ [brazil]: " mullvad_country
|
||||||
|
mullvad_country=${mullvad_country:-"brazil"}
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Configuring the docker-compose file for the user \"$username\" on \"$install_location\"..."
|
echo "Configuring the docker-compose file for the user \"$username\" on \"$install_location\"..."
|
||||||
# ============================================================================================
|
# ============================================================================================
|
||||||
|
|
||||||
@ -134,6 +148,14 @@ sed -i -e "s;<media_folder>;$media_folder;g" $filename
|
|||||||
# Set config folder
|
# Set config folder
|
||||||
sed -i -e "s;<install_location>;$install_location;g" $filename
|
sed -i -e "s;<install_location>;$install_location;g" $filename
|
||||||
|
|
||||||
|
# Set VPN
|
||||||
|
if [ $setup_vpn == "y" ]; then
|
||||||
|
sed -i -e "s;<mullvad_user>;$mullvad_user;g" $filename
|
||||||
|
sed -i -e "s;<mullvad_country>;$mullvad_country;g" $filename
|
||||||
|
sed -i -e "s;#network_mode: \"service:gluetun\";network_mode: \"service:gluetun\";g" $filename
|
||||||
|
sed -i -e "s;port: 8080:8080;#port: 8080:8080;g" $filename
|
||||||
|
fi
|
||||||
|
|
||||||
# Set yams script
|
# Set yams script
|
||||||
sed -i -e "s;<filename>;$filename;g" yams
|
sed -i -e "s;<filename>;$filename;g" yams
|
||||||
sed -i -e "s;<install_location>;$install_location;g" yams
|
sed -i -e "s;<install_location>;$install_location;g" yams
|
||||||
|
Loading…
x
Reference in New Issue
Block a user