From 3437db66daf09e5360bb92dad11fe907e36483d2 Mon Sep 17 00:00:00 2001 From: Lucas Serverhost Date: Thu, 29 Oct 2026 20:53:50 +0100 Subject: [PATCH] fix(upgrade): repair qbittorrent find latest image --- utils/upgrade.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/utils/upgrade.sh b/utils/upgrade.sh index ae97739..3cb5810 100755 --- a/utils/upgrade.sh +++ b/utils/upgrade.sh @@ -112,7 +112,7 @@ write_out() { echo "Start Update" -mkdir -p "${home_dir}/.LOG" +mkdir -p "${home_dir}/logs" log_date="$(date +"%m%d%H")" @@ -253,8 +253,10 @@ if command -v docker >/dev/null 2>&1; then qbittorrent-qbittorrent*:*) echo "Updating custom qBittorrent image..." ( - latest="$(curl -s https://api.github.com/repos/qbittorrent/qBittorrent/releases/latest | grep '"tag_name"' | cut -d '"' -f 4 | cut -d '-' -f2)" - current="$(docker exec -it qbittorrent /app/qbittorrent-nox -v | cut -d 'v' -f2)" + container="$(docker ps --filter "ancestor=$image" --format '{{.Names}}')" + LATEST="$(curl -s https://api.github.com/repos/qbittorrent/qBittorrent/releases/latest | grep '"tag_name"' | cut -d '"' -f 4 | cut -d '-' -f2)" + CURRENT="$(docker exec "$container" /app/qbittorrent-nox -v | cut -d 'v' -f2)" + echo "$container: $image - Current: $CURRENT, Latest: $LATEST" if [[ "$LATEST" != "$CURRENT" && "$BUILD" == "true" ]]; then echo "New version available: $CURRENT -> $LATEST" cd /docker/qbittorrent &&