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
for FOLDER in /opt/*; do
if [ -d "$FOLDER" ]; then
echo "Processing folder: $FOLDER"
if [ -d "$FOLDER" ]; then
echo "Processing folder: $FOLDER"
# Navigate into the folder
cd "$FOLDER" || continue
# Navigate into the folder
cd "$FOLDER" || continue
# Pull Docker Compose images
docker compose pull
# Pull Docker Compose images
docker compose pull
# Bring up Docker Compose services in detached mode
docker compose up -d
# Bring up Docker Compose services in detached mode
docker compose up -d
# Return to the previous directory
cd -
fi
# Return to the previous directory
cd -
fi
done
docker system prune -a -f