diff --git a/Makefile b/Makefile index 1c587ee..e9f55c2 100644 --- a/Makefile +++ b/Makefile @@ -175,6 +175,7 @@ uninstall: case "$$ans" in \ y|Y) \ echo "Stopping containers and removing images..."; \ + for f in data/services/*/docker-compose.yml; do [ -f "$$f" ] && PUID=$$(id -u) PGID=$$(id -g) docker compose -f "$$f" down 2>/dev/null || true; done; \ PUID=$$(id -u) PGID=$$(id -g) $(DCF) --profile core down -v --rmi all 2>/dev/null || true; \ echo "Deleting config/ and data/..."; \ sudo rm -rf config/ data/; \ @@ -182,6 +183,7 @@ uninstall: ;; \ n|N|"") \ echo "Stopping and removing containers (keeping images and data)..."; \ + for f in data/services/*/docker-compose.yml; do [ -f "$$f" ] && PUID=$$(id -u) PGID=$$(id -g) docker compose -f "$$f" down 2>/dev/null || true; done; \ PUID=$$(id -u) PGID=$$(id -g) $(DCF) --profile core down 2>/dev/null || true; \ echo "Done. Images, config/ and data/ are untouched. Run 'make start' to bring it back up."; \ ;; \