Update 93-openvpn.sh

This commit is contained in:
Alexandre
2022-03-01 05:36:16 +01:00
committed by GitHub
parent e5899f13b9
commit 598c0586ea

View File

@@ -51,10 +51,10 @@ if bashio::config.true 'openvpn_enabled'; then
QBT_CONFIG_FILE="/config/qBittorrent/qBittorrent.conf"
# Define preferences line
cd /config/qBittorrent/ || exit 1
LINE=$(sed -n '/[Preferences]/=' qBittorrent.conf)
LINE=$(sed -n '/Preferences/=' qBittorrent.conf)
LINE=$((LINE + 1))
if [ "$SESSION" != "" ]; then
SESSION=$(sed -n '/[BitTorrent]/=' qBittorrent.conf)
SESSION=$(sed -n '/BitTorrent/=' qBittorrent.conf)
SESSION=$((SESSION + 1))
fi