mirror of
https://github.com/fruworg/infrastructure.git
synced 2025-01-18 06:30:51 +03:00
Update update.sh
This commit is contained in:
parent
fb25de72a8
commit
f8b73add48
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user