mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-12 02:41:02 +01:00
Update 93-openvpn.sh
This commit is contained in:
@@ -32,6 +32,7 @@ if bashio::config.true 'openvpn_enabled'; then
|
||||
# Remove previous line and bind tun0
|
||||
sed -i '/Interface/d' qBittorrent.conf
|
||||
sed -i "$LINE i\Connection\\\Interface=tun0" qBittorrent.conf
|
||||
sed -i "$LINE i\Connection\\\InterfaceAddress=" qBittorrent.conf
|
||||
sed -i "$LINE i\Connection\\\InterfaceName=tun0" qBittorrent.conf
|
||||
|
||||
# Other configs
|
||||
@@ -55,4 +56,7 @@ else
|
||||
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
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user