add restart script

This commit is contained in:
Schneider Roland 2025-05-31 11:55:09 +02:00
parent e370dafad1
commit 353dea9d6d

View File

@ -2,8 +2,8 @@
PROJECT_ROOT=$(dirname "$(dirname "$(realpath "$0")")")
# Restart all projects except 'traefik'
for dir in $(find "$PROJECT_ROOT" -type d -path "*/docker-compose/*" | grep -v "/traefik/docker-compose/traefik"); do
# Restart all projects except 'traefik' and 'jenkins'
for dir in $(find "$PROJECT_ROOT" -type d -path "*/docker-compose/*" | grep -v "/traefik/docker-compose/traefik" | grep -v "/jenkins/docker-compose/jenkins"); do
echo "Processing directory: $dir"
cd "$dir" || { echo "Failed to enter directory: $dir"; continue; }