From 0924791310e09c59516082fbe50b1e5c6ba6a66e Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Mon, 21 Apr 2025 14:57:46 -0400 Subject: [PATCH] feat: updates to restart script --- docker-restart.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docker-restart.sh b/docker-restart.sh index e65dcb9..955dfae 100644 --- a/docker-restart.sh +++ b/docker-restart.sh @@ -3,5 +3,8 @@ # Restart all stacks / services located in '/etc/komodo/stacks'. stackdir="/etc/komodo/stacks" -find "$stackdir" -maxdepth 1 -mindepth 1 -type d -print0 | - xargs -0 -I {} cd {} && docker compose up -d +dirs=($(find "$stackdir" -maxdepth 1 -mindepth 1 -type d)) + +for dir in "${dirs[@]}"; do + cd "$dir" && docker compose up -d +done