fix(upgrade): repair qbittorrent find latest image

This commit is contained in:
lucas authored and Lucas Media committed 2026-10-30 10:27:41 +01:00
1 parent e568f214bd
commit 3437db66da
1 file changed
+5 -3
+5 -3
View File
@@ -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 &&