add custom qbittorrent upgrade to upgrade script
asd
This commit is contained in:
1 parent
4ccf2ac412
commit
342d0ddbf5
1 file changed
+19
-5
+19
-5
@@ -217,11 +217,25 @@ if command -v docker >/dev/null 2>&1; then
|
||||
|
||||
echo "Updating Docker images"
|
||||
|
||||
docker images \
|
||||
--format "{{.Repository}}:{{.Tag}}" \
|
||||
| grep -v "<none>" \
|
||||
| xargs -r -n1 docker pull
|
||||
|
||||
docker images --format "{{.Repository}}:{{.Tag}}" |
|
||||
while read -r image; do
|
||||
case "$image" in
|
||||
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
|
||||
|
||||
if [[ $? -eq 0 ]]; then
|
||||
|
||||
Reference in new issue
Block a user