mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-24 16:26:04 +02:00
Update 93-openvpn.sh
This commit is contained in:
@@ -46,7 +46,6 @@ if bashio::config.true 'openvpn_enabled'; then
|
|||||||
# Bind tun0
|
# Bind tun0
|
||||||
sed -i "$LINE i\Connection\\\Interface=tun0" qBittorrent.conf
|
sed -i "$LINE i\Connection\\\Interface=tun0" qBittorrent.conf
|
||||||
sed -i "$LINE i\Connection\\\InterfaceName=tun0" qBittorrent.conf
|
sed -i "$LINE i\Connection\\\InterfaceName=tun0" qBittorrent.conf
|
||||||
sed -i "$LINE i\Connection\\\PortRangeMin=$1" qBittorrent.conf
|
|
||||||
else
|
else
|
||||||
bashio::log.error "qBittorrent config file doesn't exist, openvpn must be added manually to qbittorrent options "
|
bashio::log.error "qBittorrent config file doesn't exist, openvpn must be added manually to qbittorrent options "
|
||||||
exit 1
|
exit 1
|
||||||
@@ -57,7 +56,6 @@ else
|
|||||||
##################
|
##################
|
||||||
# Ensure no redirection by removing the direction tag
|
# Ensure no redirection by removing the direction tag
|
||||||
cd /config/qBittorrent/
|
cd /config/qBittorrent/
|
||||||
sed -i '/PortRangeMin/d' qBittorrent.conf
|
|
||||||
sed -i '/Interface/d' qBittorrent.conf
|
sed -i '/Interface/d' qBittorrent.conf
|
||||||
sed -i "$LINE i\Connection\\\Interface=" qBittorrent.conf
|
sed -i "$LINE i\Connection\\\Interface=" qBittorrent.conf
|
||||||
sed -i "$LINE i\Connection\\\InterfaceName=" qBittorrent.conf
|
sed -i "$LINE i\Connection\\\InterfaceName=" qBittorrent.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user