add restart script
This commit is contained in:
parent
e370dafad1
commit
353dea9d6d
@ -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; }
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user