From 7dea5db1c5a8211116cea2c6c642c4946071e103 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 7 Dec 2022 22:46:15 +0100 Subject: [PATCH] Update 91-qbittorrent_configuration.sh --- .../etc/cont-init.d/91-qbittorrent_configuration.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qbittorrent/rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh b/qbittorrent/rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh index bad71d320..28d1f2e56 100644 --- a/qbittorrent/rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh @@ -39,14 +39,14 @@ if bashio::config.has_value 'SavePath'; then DOWNLOADS=$(bashio::config 'SavePath') # Replace save path - CURRENTSAVEPATH=$(sed -n '/Downloads\\SavePath/p' qBittorrent.conf) + CURRENTSAVEPATH=$(sed -n '/Downloads\\\SavePath/p' qBittorrent.conf) sed -i "s|${CURRENTSAVEPATH#*=}|$DOWNLOADS|g" qBittorrent.conf || \ - sed -i "${LINE}a Downloads\\SavePath=$DOWNLOADS" qBittorrent.conf + sed -i "${LINE}a Downloads\\\SavePath=$DOWNLOADS" qBittorrent.conf # Replace session save path - CURRENTSAVEPATH=$(sed -n '/Session\\DefaultSavePath/p' qBittorrent.conf) + CURRENTSAVEPATH=$(sed -n '/Session\\\DefaultSavePath/p' qBittorrent.conf) sed -i "s|${CURRENTSAVEPATH#*=}|$DOWNLOADS|g" qBittorrent.conf || \ - sed -i "2a Session\\DefaultSavePath=$DOWNLOADS" qBittorrent.conf + sed -i "2a Session\\\DefaultSavePath=$DOWNLOADS" qBittorrent.conf # Info bashio::log.info "Downloads can be found in $DOWNLOADS"