From 5d04975aad3aba3a2e02eabfe088452bbc7dc337 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 11 Jan 2022 08:01:29 +0100 Subject: [PATCH] Update 91-qbittorrent_configuration.sh --- .../rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh | 1 + 1 file changed, 1 insertion(+) 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 6408e6c52..800cf53db 100644 --- a/qbittorrent/rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh @@ -29,6 +29,7 @@ if bashio::config.has_value 'SavePath'; then DOWNLOADS=$(bashio::config 'SavePath') sed -i '/SavePath/d' qBittorrent.conf sed -i "$LINE i\Downloads\\\SavePath=$DOWNLOADS" qBittorrent.conf + sed -i "$LINE i\Session\\\DefaultSavePath=$DOWNLOADS" qBittorrent.conf mkdir -p $DOWNLOADS || bashio::log.fatal "Error : folder defined in SavePath doesn't exist and can't be created. Check path" chown -R abc:abc $DOWNLOADS || bashio::log.fatal "Error, please check default save folder configuration in addon" bashio::log.info "Downloads can be found in $DOWNLOADS"