Update 93-openvpn.sh

This commit is contained in:
Alexandre
2022-02-28 07:26:58 +01:00
committed by GitHub
parent 31e45c637e
commit 7a02e59b97

View File

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