Update 91-qbittorrent_configuration.sh

This commit is contained in:
Alexandre
2022-01-11 08:27:24 +01:00
committed by GitHub
parent 7481010d58
commit 4efda578c3

View File

@@ -27,8 +27,8 @@ fi
if bashio::config.has_value 'SavePath'; then
DOWNLOADS=$(bashio::config 'SavePath')
sed -i '/DefaultSavePath/d' qBittorrent.conf
sed -i "$LINE i\Session\\\DefaultSavePath=$DOWNLOADS" qBittorrent.conf
#sed -i '/DefaultSavePath/d' qBittorrent.conf
#sed -i "$LINE i\Session\\\DefaultSavePath=$DOWNLOADS" qBittorrent.conf
sed -i '/SavePath/d' qBittorrent.conf
sed -i "$LINE i\Downloads\\\SavePath=$DOWNLOADS" qBittorrent.conf
mkdir -p $DOWNLOADS || bashio::log.fatal "Error : folder defined in SavePath doesn't exist and can't be created. Check path"