#!/bin/bash # Restart all stacks / services located in '/etc/komodo/stacks'. stackdir="/etc/komodo/stacks" dirs=($(find "$stackdir" -maxdepth 1 -mindepth 1 -type d)) for dir in "${dirs[@]}"; do cd "$dir" && docker compose up -d done