mirror of
https://github.com/fruworg/infrastructure.git
synced 2025-01-18 14:40: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
|
# 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user