Update 93-openvpn.sh

This commit is contained in:
Alexandre
2021-04-24 08:37:34 +02:00
committed by GitHub
parent f92d82b2a6
commit defbecd659

View File

@@ -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