mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-09 07:20:58 +02:00
Update 93-openvpn.sh
This commit is contained in:
@@ -51,10 +51,10 @@ if bashio::config.true 'openvpn_enabled'; then
|
|||||||
QBT_CONFIG_FILE="/config/qBittorrent/qBittorrent.conf"
|
QBT_CONFIG_FILE="/config/qBittorrent/qBittorrent.conf"
|
||||||
# Define preferences line
|
# Define preferences line
|
||||||
cd /config/qBittorrent/ || exit 1
|
cd /config/qBittorrent/ || exit 1
|
||||||
LINE=$(sed -n '/[Preferences]/=' qBittorrent.conf)
|
LINE=$(sed -n '/Preferences/=' qBittorrent.conf)
|
||||||
LINE=$((LINE + 1))
|
LINE=$((LINE + 1))
|
||||||
if [ "$SESSION" != "" ]; then
|
if [ "$SESSION" != "" ]; then
|
||||||
SESSION=$(sed -n '/[BitTorrent]/=' qBittorrent.conf)
|
SESSION=$(sed -n '/BitTorrent/=' qBittorrent.conf)
|
||||||
SESSION=$((SESSION + 1))
|
SESSION=$((SESSION + 1))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user