add custom qbittorrent upgrade to upgrade script

asd
This commit is contained in:
lucas committed 2026-10-01 14:07:30 +00:00
1 parent 4ccf2ac412
commit 342d0ddbf5
1 file changed
+19 -5
+19 -5
View File
@@ -217,11 +217,25 @@ if command -v docker >/dev/null 2>&1; then
echo "Updating Docker images" echo "Updating Docker images"
docker images \ docker images --format "{{.Repository}}:{{.Tag}}" |
--format "{{.Repository}}:{{.Tag}}" \ while read -r image; do
| grep -v "<none>" \ case "$image" in
| xargs -r -n1 docker pull qbittorrent-qbittorrent:*)
echo "Updating custom qBittorrent image..."
(
cd /docker/qbittorrent &&
docker compose build --pull &&
docker compose up -d
)
;;
*"<none>"*)
;;
*)
docker pull "$image"
;;
esac
done
systemctl restart docker systemctl restart docker
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then