mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-10-26 15:54:17 +00:00
Update 91-qbittorrent_configuration.sh
This commit is contained in:
1 parent
de78c15a02
commit
0f9e527aa5
1 file changed
+7
@@ -135,6 +135,13 @@ if bashio::config.has_value 'Username'; then
|
||||
#add data
|
||||
sed -i "$LINE i\WebUI\\\Username=$USERNAME" qBittorrent.conf
|
||||
bashio::log.info "WEBUI username set to $USERNAME"
|
||||
else
|
||||
if ! grep -q Username qBittorrent.conf; then
|
||||
sed -i "$LINE i\WebUI\\\Username=admin" qBittorrent.conf
|
||||
fi
|
||||
if ! grep -q Password_PBKDF2 qBittorrent.conf; then
|
||||
sed -i "$LINE i\WebUI\\Password_PBKDF2=\"@ByteArray(cps93Gf8ma8EM3QRon+spg==:wYFoMNVmdiqzWYQ6mFrvET+RRbBSIPVfXFFeEy0ZEagxvNuEF7uGVnG5iq8oeu38kGLtmJqCM2w8cTdtORDP2A==)\"" qBittorrent.conf
|
||||
fi
|
||||
fi
|
||||
|
||||
################
|
||||
|
||||
Reference in new issue
Block a user