feat: updates to restart script
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user