From defbecd659b3346003bcd4df6c40c8170132699d Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 24 Apr 2021 08:37:34 +0200 Subject: [PATCH] Update 93-openvpn.sh --- qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh b/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh index 2943a0b38..db4831243 100644 --- a/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh @@ -54,9 +54,10 @@ if bashio::config.true 'openvpn_enabled'; then else # Ensure no redirection by removing the direction tag bashio::log.info "Direct connection without VPN enabled" - sed -i '/PortRangeMin/d' $QBT_CONFIG_FILE - sed -i '/Interface/d' $QBT_CONFIG_FILE - sed -i "$LINE i\Connection\\\Interface=" $QBT_CONFIG_FILE - sed -i "$LINE i\Connection\\\InterfaceAddress=" $QBT_CONFIG_FILE - sed -i "$LINE i\Connection\\\InterfaceName=" $QBT_CONFIG_FILE + cd /config/qBittorrent/ + sed -i '/PortRangeMin/d' qBittorrent.conf + sed -i '/Interface/d' qBittorrent.conf + sed -i "$LINE i\Connection\\\Interface=" qBittorrent.conf + sed -i "$LINE i\Connection\\\InterfaceAddress=" qBittorrent.conf + sed -i "$LINE i\Connection\\\InterfaceName=" qBittorrent.conf fi