fixing docker update issues haha
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 3s

This commit is contained in:
Jose Henrique 2024-12-28 22:13:11 -03:00
parent 00c4f5ceed
commit 80a1ad59cf

View File

@ -71,16 +71,15 @@ for folder in */; do
echo -e "${LIGHT_BLUE}[$folder] Stopping Docker containers"
docker compose down > /dev/null
else
echo -e "${LIGHT_BLUE}[$folder] No Docker containers running"
echo -e "${LIGHT_BLUE}[$folder] No Docker containers running, will skip update"
continue
fi
echo -e "${LIGHT_BLUE}[$folder] Updating images"
docker compose pull -q > /dev/null
if [ -n "$DOCKER_RUNNING" ]; then
echo -e "${LIGHT_BLUE}[$folder] Starting Docker containers"
docker compose up -d > /dev/null
fi
echo -e "${LIGHT_BLUE}[$folder] Starting Docker containers"
docker compose up -d > /dev/null
echo -e "${LIGHT_GREEN}[$folder] Updated!"