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