From 4c5f17bb19bf98f72d90837bf76fb3ac92613f9d Mon Sep 17 00:00:00 2001 From: Alexandre Date: Sat, 12 Jul 2025 08:30:19 +0200 Subject: [PATCH] avoid yify --- qbittorrent/CHANGELOG.md | 3 ++- qbittorrent/config.json | 2 +- .../rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh | 5 +++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/qbittorrent/CHANGELOG.md b/qbittorrent/CHANGELOG.md index 347a85c2c..878055031 100644 --- a/qbittorrent/CHANGELOG.md +++ b/qbittorrent/CHANGELOG.md @@ -1,5 +1,6 @@ -## 5.1.2 (05-07-2025) +- Safety check : check if yify.foo found in qbittorrent.conf +## 5.1.2 (05-07-2025) - Update to latest version from linuxserver/docker-qbittorrent (changelog : https://github.com/linuxserver/docker-qbittorrent/releases) ## 5.1.1 (28-06-2025) diff --git a/qbittorrent/config.json b/qbittorrent/config.json index b08658cde..d6d235bc1 100644 --- a/qbittorrent/config.json +++ b/qbittorrent/config.json @@ -141,5 +141,5 @@ "slug": "qbittorrent", "udev": true, "url": "https://github.com/alexbelgium/hassio-addons", - "version": "5.1.2" + "version": "5.1.2-2" } 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 d9794911d..360ce5fc3 100755 --- a/qbittorrent/rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh @@ -236,5 +236,10 @@ fi # CLOSE # ########## +if grep -q "yify.foo" "$CONFIG_LOCATION"/qBittorrent.conf; then + bashio::log.warning "yify.foo found in qBittorrent.conf, this is a safety issue. It is removed now, but you should check your configuration." + sed -i '/yify.foo/d' "$CONFIG_LOCATION"/qBittorrent.conf +fi + bashio::log.info "Default username/password : $USERNAME/homeassistant" bashio::log.info "Configuration can be found in $CONFIG_LOCATION"