feat: updates to restart script
This commit is contained in:
@@ -3,5 +3,8 @@
|
|||||||
# Restart all stacks / services located in '/etc/komodo/stacks'.
|
# Restart all stacks / services located in '/etc/komodo/stacks'.
|
||||||
|
|
||||||
stackdir="/etc/komodo/stacks"
|
stackdir="/etc/komodo/stacks"
|
||||||
find "$stackdir" -maxdepth 1 -mindepth 1 -type d -print0 |
|
dirs=($(find "$stackdir" -maxdepth 1 -mindepth 1 -type d))
|
||||||
xargs -0 -I {} cd {} && docker compose up -d
|
|
||||||
|
for dir in "${dirs[@]}"; do
|
||||||
|
cd "$dir" && docker compose up -d
|
||||||
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user