mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-11 01:55:59 +02:00
Update 91-qbittorrent_configuration.sh
This commit is contained in:
@@ -109,11 +109,11 @@ fi
|
|||||||
|
|
||||||
cd "$CONFIG_LOCATION"/ || true
|
cd "$CONFIG_LOCATION"/ || true
|
||||||
|
|
||||||
WHITELIST=$(bashio::config 'whitelist')
|
WHITELIST="$(bashio::config 'whitelist')"
|
||||||
#clean data
|
#clean data
|
||||||
sed -i '/AuthSubnetWhitelist/d' qBittorrent.conf
|
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\\\AuthSubnetWhitelistEnabled=true" qBittorrent.conf
|
||||||
sed -i "$LINE i\WebUI\\\AuthSubnetWhitelist=$WHITELIST" qBittorrent.conf
|
sed -i "$LINE i\WebUI\\\AuthSubnetWhitelist=$WHITELIST" qBittorrent.conf
|
||||||
bashio::log.info "Whitelisted subsets will not require a password : $WHITELIST"
|
bashio::log.info "Whitelisted subsets will not require a password : $WHITELIST"
|
||||||
|
|||||||
Reference in New Issue
Block a user