feat: updates to restart script

This commit is contained in:
2025-04-21 14:57:46 -04:00
parent af5b9f90e6
commit 0924791310

View File

@@ -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