Update 91-qbittorrent_configuration.sh

This commit is contained in:
Alexandre
2023-01-17 21:28:07 +01:00
committed by GitHub
parent f61b1041d7
commit 605a8b4254

View File

@@ -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"