Update 91-qbittorrent_configuration.sh

This commit is contained in:
Alexandre
2023-12-30 11:59:28 +01:00
committed by GitHub
parent c3a2663410
commit 5baacbbf6b

View File

@@ -117,8 +117,9 @@ fi
cd "$CONFIG_LOCATION"/ || true cd "$CONFIG_LOCATION"/ || true
WHITELIST="$(bashio::config 'whitelist')" WHITELIST="$(bashio::config 'whitelist')"
# Remove blanks # Sanitize blanks after comma
WHITELIST="${WHITELIST// /}" WHITELIST="${WHITELIST// /}"
WHITELIST="${WHITELIST//,/,\ }"
#clean data #clean data
sed -i '/AuthSubnetWhitelist/d' qBittorrent.conf sed -i '/AuthSubnetWhitelist/d' qBittorrent.conf