add docker compose up to upgrade.sh
This commit is contained in:
1 parent
5b7cb93ebe
commit
3514f3e489
1 file changed
+14
@@ -219,6 +219,10 @@ if command -v docker >/dev/null 2>&1; then
|
|||||||
|
|
||||||
docker images --format "{{.Repository}}:{{.Tag}}" |
|
docker images --format "{{.Repository}}:{{.Tag}}" |
|
||||||
while read -r image; do
|
while read -r image; do
|
||||||
|
echo "####################################################"
|
||||||
|
echo "### $image"
|
||||||
|
echo "####################################################"
|
||||||
|
|
||||||
case "$image" in
|
case "$image" in
|
||||||
qbittorrent-qbittorrent:*)
|
qbittorrent-qbittorrent:*)
|
||||||
echo "Updating custom qBittorrent image..."
|
echo "Updating custom qBittorrent image..."
|
||||||
@@ -254,11 +258,21 @@ if [ -f /docker/qbittorrent/docker-compose.yml ]; then
|
|||||||
docker compose up -d
|
docker compose up -d
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
for d in /docker/*; do
|
||||||
|
if [ -d $d ]; then
|
||||||
|
docker compose -f $d/docker-compose.yaml up -d
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
docker container prune -f
|
docker container prune -f
|
||||||
docker network prune -f
|
docker network prune -f
|
||||||
docker image prune -a -f
|
docker image prune -a -f
|
||||||
docker builder prune -f
|
docker builder prune -f
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Mail Report
|
# Mail Report
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|||||||
Reference in new issue
Block a user