add qbittorrent custom image upgrade agian

This commit is contained in:
lucas committed 2026-10-24 20:11:11 +02:00
1 parent 5ec0108117
commit 2ec34dd1be
1 file changed
+18 -18
+18 -18
View File
@@ -250,24 +250,24 @@ if command -v docker >/dev/null 2>&1; then
echo "####################################################"
case "$image" in
# 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)"
# if [[ "$LATEST" != "$CURRENT" && "$BUILD" == "true" ]]; then
# echo "New version available: $CURRENT -> $LATEST"
# cd /docker/qbittorrent &&
# docker compose build --pull &&
# docker compose up -d
# elif [[ "$LATEST" != "$CURRENT" ]]; then
# echo "New version available: $CURRENT -> $LATEST"
# echo "BUILD is turend off"
# else
# echo "No new version available: $CURRENT == $LATEST"
# fi
# )
# ;;
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)"
if [[ "$LATEST" != "$CURRENT" && "$BUILD" == "true" ]]; then
echo "New version available: $CURRENT -> $LATEST"
cd /docker/qbittorrent &&
docker compose build --pull &&
docker compose up -d
elif [[ "$LATEST" != "$CURRENT" ]]; then
echo "New version available: $CURRENT -> $LATEST"
echo "BUILD is turend off"
else
echo "No new version available: $CURRENT == $LATEST"
fi
)
;;
nextcloud:*)
docker pull "$image"
docker exec -it nextcloud php occ app:update --all