Update 91-configuration.sh

This commit is contained in:
Alexandre
2021-02-14 15:20:03 +01:00
committed by GitHub
parent 7ddbe626e1
commit cc079e86ef

View File

@@ -13,8 +13,8 @@ LINE=$((LINE + 1))
# Default folder #
##################
if bashio::config.has_value 'download-folder'; then
DOWNLOADS=$(bashio::config 'download-folder')
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
mkdir -p $DOWNLOADS || true