fix: uninstall stops optional service containers before core teardown
Unit Tests / test (push) Successful in 11m11s
Unit Tests / test (push) Successful in 11m11s
Iterates data/services/*/docker-compose.yml and runs `docker compose down` for each before stopping core containers, so stale optional-service containers (email, calendar, files, etc.) don't leave cell-network occupied and block a subsequent fresh install. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -175,6 +175,7 @@ uninstall:
|
|||||||
case "$$ans" in \
|
case "$$ans" in \
|
||||||
y|Y) \
|
y|Y) \
|
||||||
echo "Stopping containers and removing images..."; \
|
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; \
|
PUID=$$(id -u) PGID=$$(id -g) $(DCF) --profile core down -v --rmi all 2>/dev/null || true; \
|
||||||
echo "Deleting config/ and data/..."; \
|
echo "Deleting config/ and data/..."; \
|
||||||
sudo rm -rf config/ data/; \
|
sudo rm -rf config/ data/; \
|
||||||
@@ -182,6 +183,7 @@ uninstall:
|
|||||||
;; \
|
;; \
|
||||||
n|N|"") \
|
n|N|"") \
|
||||||
echo "Stopping and removing containers (keeping images and data)..."; \
|
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; \
|
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."; \
|
echo "Done. Images, config/ and data/ are untouched. Run 'make start' to bring it back up."; \
|
||||||
;; \
|
;; \
|
||||||
|
|||||||
Reference in New Issue
Block a user