fixing docker update issues haha
Check scripts syntax / check-scripts-syntax (push) Successful in 3s
Check scripts syntax / check-scripts-syntax (push) Successful in 3s
This commit is contained in:
1 parent
00c4f5ceed
commit
80a1ad59cf
1 file changed
+4
-5
+4
-5
@@ -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!"
|
||||
|
||||
|
||||
Reference in new issue
Block a user