Update 91-qbittorrent_configuration.sh

This commit is contained in:
Alexandre
2022-12-07 22:30:48 +01:00
committed by GitHub
parent 3ced77ccb3
commit e1cefcd31a

View File

@@ -46,7 +46,7 @@ DOWNLOADS=$(bashio::config 'SavePath')
# Replace session save path
CURRENTSAVEPATH=$(sed -n '/Session\DefaultSavePath/p' qBittorrent.conf)
sed -i "s|${CURRENTSAVEPATH#*=}|$DOWNLOADS|g" qBittorrent.conf || \
sed -i "1a [BitTorrent] qBittorrent.conf;
sed -i "1a [BitTorrent]" qBittorrent.conf;
sed -i "2a Session\DefaultSavePath=$DOWNLOADS" qBittorrent.conf
# Info