Utoljára aktív 1746485425

Revízió 5446b017da317d9c0a75b9346038abb1e21f6abc

update_docker_stacks.sh Eredeti
1#!/bin/bash
2
3ROOT_DIR="$1" # Root directory passed as an argument
4
5find "$ROOT_DIR" -maxdepth 1 -type d -print0 | while IFS= read -r -d $'\0' dir; do
6 if [ -f "$dir/docker-compose.yaml" ]; then
7 echo "Processing: $dir"
8 (
9 cd "$dir" || exit 1 # Changed || to exit 1 for clearer error handling
10 docker compose pull && docker compose up -d
11 )
12 fi
13done
14
15echo "Completed processing all subdirectories."