mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-02 07:10:53 +02: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
|
# Remove previous line and bind tun0
|
||||||
sed -i '/Interface/d' qBittorrent.conf
|
sed -i '/Interface/d' qBittorrent.conf
|
||||||
sed -i "$LINE i\Connection\\\Interface=tun0" 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
|
sed -i "$LINE i\Connection\\\InterfaceName=tun0" qBittorrent.conf
|
||||||
|
|
||||||
# Other configs
|
# Other configs
|
||||||
@@ -55,4 +56,7 @@ else
|
|||||||
bashio::log.info "Direct connection without VPN enabled"
|
bashio::log.info "Direct connection without VPN enabled"
|
||||||
sed -i '/PortRangeMin/d' $QBT_CONFIG_FILE
|
sed -i '/PortRangeMin/d' $QBT_CONFIG_FILE
|
||||||
sed -i '/Interface/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
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user