Última actividad 1746485425

Revisión 095a5a0e41d40b3d34d689d9f57a47532f820132

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