Add username setting

This commit is contained in:
Alexandre
2021-02-15 11:51:01 +01:00
committed by GitHub
parent 994bd5a2b2
commit 00100fc401

View File

@@ -59,6 +59,20 @@ if bashio::config.has_value 'whitelist'; then
bashio::log.info "Whitelisted subsets will not require a password : $WHITELIST"
fi
################
# USERNAME #
################
cd /config/qBittorrent/
if bashio::config.has_value 'Username'; then
USERNAME=$(bashio::config 'Username')
#clean data
sed -i '/WebUI\\\Username/d' qBittorrent.conf
#add data
sed -i "$LINE i\WebUI\\\Username=$USERNAME" qBittorrent.conf
bashio::log.info "WEBUI username set to $USERNAME"
fi
################
# Alternate UI #
################