Changed identifiers for VPN search

This commit is contained in:
Roger Gonzalez 2023-11-12 10:39:21 -03:00
parent 30b6dd8464
commit 40e21a21bf
Signed by: rogs
GPG Key ID: C7ECE9C6C36EC2E6
3 changed files with 12 additions and 12 deletions

View File

@ -6,7 +6,7 @@ INSTALL_DIRECTORY=<install_directory>
MEDIA_SERVICE=<media_service>
# VPN configuration
VPN_ENABLED=<vpn_enabled>
VPN_SERVICE=<vpn_service>
VPN_USER=<vpn_user>
VPN_PASSWORD=<vpn_password>
VPN_ENABLED=vpn_enabled
VPN_SERVICE=vpn_service
VPN_USER=vpn_user
VPN_PASSWORD=vpn_password

View File

@ -385,12 +385,12 @@ if [ "$media_service" == "plex" ]; then
fi
sed -i -e "s|<install_directory>|$install_directory|g" "$env_file" \
-e "s|<vpn_enabled>|$setup_vpn|g" "$env_file" \
-e "s|vpn_enabled|$setup_vpn|g" "$env_file" \
if [ "$setup_vpn" == "y" ]; then
sed -i -e "s|<vpn_service>|$vpn_service|g" "$env_file" \
-e "s|<vpn_user>|$vpn_user|g" "$env_file" \
-e "s|<vpn_password>|$vpn_password|g" "$env_file" \
sed -i -e "s|vpn_service|$vpn_service|g" "$env_file" \
-e "s|vpn_user|$vpn_user|g" "$env_file" \
-e "s|vpn_password|$vpn_password|g" "$env_file" \
-e "s|#network_mode: \"service:gluetun\"|network_mode: \"service:gluetun\"|g" "$filename" \
-e "s|ports: # qbittorrent|#ports: # qbittorrent|g" "$filename" \
-e "s|- 8080:8080 # qbittorrent|#- 8080:8080 # qbittorrent|g" "$filename" \

View File

@ -228,12 +228,12 @@ if [ "$media_service" == "plex" ]; then
fi
sed -i -e "s|<install_directory>|$install_directory|g" "$env_file" \
-e "s|<vpn_enabled>|$setup_vpn|g" "$env_file" \
-e "s|vpn_enabled|$setup_vpn|g" "$env_file" \
if [ "$setup_vpn" == "y" ]; then
sed -i -e "s|<vpn_service>|$vpn_service|g" "$env_file" \
-e "s|<vpn_user>|$vpn_user|g" "$env_file" \
-e "s|<vpn_password>|$vpn_password|g" "$env_file" \
sed -i -e "s|vpn_service|$vpn_service|g" "$env_file" \
-e "s|vpn_user|$vpn_user|g" "$env_file" \
-e "s|vpn_password|$vpn_password|g" "$env_file" \
-e "s|#network_mode: \"service:gluetun\"|network_mode: \"service:gluetun\"|g" "$filename" \
-e "s|ports: # qbittorrent|#ports: # qbittorrent|g" "$filename" \
-e "s|- 8080:8080 # qbittorrent|#- 8080:8080 # qbittorrent|g" "$filename" \