Files
wekan/docs/Platforms/FOSS/Container/Docker/Meteor3/update-docker-settings.sh
T
2026-08-03 13:07:12 +03:00

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!"