mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-17 12:59:13 +02:00
Add username setting
This commit is contained in:
@@ -59,6 +59,20 @@ if bashio::config.has_value 'whitelist'; then
|
|||||||
bashio::log.info "Whitelisted subsets will not require a password : $WHITELIST"
|
bashio::log.info "Whitelisted subsets will not require a password : $WHITELIST"
|
||||||
fi
|
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 #
|
# Alternate UI #
|
||||||
################
|
################
|
||||||
|
|||||||
Reference in New Issue
Block a user