mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-19 19:18:10 +01:00
Update 91-qbittorrent_configuration.sh
This commit is contained in:
@@ -109,11 +109,11 @@ fi
|
||||
|
||||
cd "$CONFIG_LOCATION"/ || true
|
||||
|
||||
WHITELIST=$(bashio::config 'whitelist')
|
||||
WHITELIST="$(bashio::config 'whitelist')"
|
||||
#clean data
|
||||
sed -i '/AuthSubnetWhitelist/d' qBittorrent.conf
|
||||
|
||||
if [[ ${#WHITELIST} -gt 5 ]]; then
|
||||
if [[ "${#WHITELIST}" -gt 5 ]]; then
|
||||
sed -i "$LINE i\WebUI\\\AuthSubnetWhitelistEnabled=true" qBittorrent.conf
|
||||
sed -i "$LINE i\WebUI\\\AuthSubnetWhitelist=$WHITELIST" qBittorrent.conf
|
||||
bashio::log.info "Whitelisted subsets will not require a password : $WHITELIST"
|
||||
|
||||
Reference in New Issue
Block a user