From 0f9e527aa5d928e7855164e0367df6a3bb1ee02e Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 22 Nov 2023 11:18:44 +0100 Subject: [PATCH] Update 91-qbittorrent_configuration.sh --- .../rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qbittorrent/rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh b/qbittorrent/rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh index 016b06bf7..a89fcacb9 100755 --- a/qbittorrent/rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh @@ -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 ################