From 40e21a21bf8748385ef3a6d21d16d426dcbe7117 Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Sun, 12 Nov 2023 10:39:21 -0300 Subject: [PATCH] Changed identifiers for VPN search --- .env.example | 8 ++++---- docs.org | 8 ++++---- install.sh | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.env.example b/.env.example index 7571f03..34f9659 100644 --- a/.env.example +++ b/.env.example @@ -6,7 +6,7 @@ INSTALL_DIRECTORY= MEDIA_SERVICE= # VPN configuration -VPN_ENABLED= -VPN_SERVICE= -VPN_USER= -VPN_PASSWORD= +VPN_ENABLED=vpn_enabled +VPN_SERVICE=vpn_service +VPN_USER=vpn_user +VPN_PASSWORD=vpn_password diff --git a/docs.org b/docs.org index d79521c..2c6b3b6 100644 --- a/docs.org +++ b/docs.org @@ -385,12 +385,12 @@ if [ "$media_service" == "plex" ]; then fi sed -i -e "s||$install_directory|g" "$env_file" \ - -e "s||$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|g" "$env_file" \ - -e "s||$vpn_user|g" "$env_file" \ - -e "s||$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" \ diff --git a/install.sh b/install.sh index 921373b..aa872ae 100644 --- a/install.sh +++ b/install.sh @@ -228,12 +228,12 @@ if [ "$media_service" == "plex" ]; then fi sed -i -e "s||$install_directory|g" "$env_file" \ - -e "s||$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|g" "$env_file" \ - -e "s||$vpn_user|g" "$env_file" \ - -e "s||$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" \