mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 18:31:02 +01:00
Update 91-configuration.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user