From 2c9d11753a22503b0f4c92b17946182f0ce9bae0 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 10 Dec 2023 19:42:26 +0100 Subject: [PATCH] Update 91-qbittorrent_configuration.sh --- .../rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh | 2 -- 1 file changed, 2 deletions(-) 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 4434e6e0c..520df83e7 100755 --- a/qbittorrent/rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh @@ -120,7 +120,6 @@ bashio::log.info "WEBUI username set to $QBT_USERNAME" # Set initial password to homeassistant cd "$CONFIG_LOCATION"/ || true -NEEDREBOOT="" if ! grep -q "Password_PBKDF2" qBittorrent.conf; then function escape_special_characters() { local value="$1" @@ -130,7 +129,6 @@ if ! grep -q "Password_PBKDF2" qBittorrent.conf; then PBKDF2="UDxNW6zG8wJHG9PvnGFP4A==:gJZEXLbR2XYNN042G4ygLMvZi2BhHm2m6Soz6GVCrCuVZH6OSkUan7AvUDEiSodHckUm8oNTkx9atQwcUf/JLQ==" PBKDF2="$(escape_special_characters "$PBKDF2")" sed -i "/\[Preferences\]/a\WebUI\\\Password_PBKDF2=\"@ByteArray($PBKDF2)\"" qBittorrent.conf - NEEDREBOOT=true fi ####################