mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-08 08:35:57 +02:00
Correct savepath
This commit is contained in:
@@ -39,12 +39,12 @@ DOWNLOADS=$(bashio::config 'SavePath')
|
|||||||
if bashio::config.has_value 'SavePath'; then
|
if bashio::config.has_value 'SavePath'; then
|
||||||
|
|
||||||
# Replace save path
|
# Replace save path
|
||||||
CURRENTSAVEPATH=$(sed -n '/Downloads\\SavePath/p' qBittorrent.conf)
|
CURRENTSAVEPATH=$(sed -n '/Downloads\SavePath/p' qBittorrent.conf)
|
||||||
sed -i "s|${CURRENTSAVEPATH#*=}|$DOWNLOADS|g" qBittorrent.conf || \
|
sed -i "s|${CURRENTSAVEPATH#*=}|$DOWNLOADS|g" qBittorrent.conf || \
|
||||||
sed -i "${LINE}a Downloads\SavePath=$DOWNLOADS" qBittorrent.conf
|
sed -i "${LINE}a Downloads\SavePath=$DOWNLOADS" qBittorrent.conf
|
||||||
|
|
||||||
# Replace session save path
|
# Replace session save path
|
||||||
CURRENTSAVEPATH=$(sed -n '/Session\\DefaultSavePath/p' qBittorrent.conf)
|
CURRENTSAVEPATH=$(sed -n '/Session\DefaultSavePath/p' qBittorrent.conf)
|
||||||
sed -i "s|${CURRENTSAVEPATH#*=}|$DOWNLOADS|g" qBittorrent.conf || true
|
sed -i "s|${CURRENTSAVEPATH#*=}|$DOWNLOADS|g" qBittorrent.conf || true
|
||||||
|
|
||||||
# Info
|
# Info
|
||||||
|
|||||||
Reference in New Issue
Block a user