From 598c0586ea9e02cee0c5215c62f7bf18dec7d291 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 1 Mar 2022 05:36:16 +0100 Subject: [PATCH] Update 93-openvpn.sh --- qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh b/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh index 090402470..379437a8e 100644 --- a/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh @@ -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