mirror of
https://github.com/wekan/wekan.git
synced 2026-11-26 14:45:11 -05:00
25 lines
687 B
Bash
Executable File
25 lines
687 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Loop through all subdirectories in the current directory
|
|
for d in restore/*/ ; do
|
|
# Remove the trailing slash to get just the folder name
|
|
FOLDER_NAME="${d%/}"
|
|
|
|
echo "--------------------------------------------------"
|
|
echo "Processing folder: $FOLDER_NAME"
|
|
echo "--------------------------------------------------"
|
|
|
|
# Change into the subdirectory, skip if it fails
|
|
cd "$FOLDER_NAME" || continue
|
|
|
|
# Run the Docker commands using the folder name
|
|
docker compose down
|
|
docker rm "${FOLDER_NAME}-tenant"
|
|
docker compose up -d --force-recreate
|
|
|
|
# Return to the parent directory
|
|
cd ..
|
|
done
|
|
|
|
echo "All folders processed!"
|