Update update.sh

This commit is contained in:
Руслан 2023-09-24 18:56:51 +06:00 committed by GitHub
parent fb25de72a8
commit f8b73add48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,21 +4,21 @@ source /root/.bashrc
# Iterate through all folders in /opt # Iterate through all folders in /opt
for FOLDER in /opt/*; do for FOLDER in /opt/*; do
if [ -d "$FOLDER" ]; then if [ -d "$FOLDER" ]; then
echo "Processing folder: $FOLDER" echo "Processing folder: $FOLDER"
# Navigate into the folder # Navigate into the folder
cd "$FOLDER" || continue cd "$FOLDER" || continue
# Pull Docker Compose images # Pull Docker Compose images
docker compose pull docker compose pull
# Bring up Docker Compose services in detached mode # Bring up Docker Compose services in detached mode
docker compose up -d docker compose up -d
# Return to the previous directory # Return to the previous directory
cd - cd -
fi fi
done done
docker system prune -a -f docker system prune -a -f