From c3900aaf1b7c755519857f315da56ac3e304bbf5 Mon Sep 17 00:00:00 2001 From: array-in-a-matrix Date: Tue, 28 Feb 2023 18:06:46 -0500 Subject: [PATCH] remove devture services --- roles/custom/matrix-base/templates/bin/remove-all.j2 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/custom/matrix-base/templates/bin/remove-all.j2 b/roles/custom/matrix-base/templates/bin/remove-all.j2 index 5dd862ae..46e1f757 100644 --- a/roles/custom/matrix-base/templates/bin/remove-all.j2 +++ b/roles/custom/matrix-base/templates/bin/remove-all.j2 @@ -21,6 +21,13 @@ else rm -f {{ devture_systemd_docker_base_systemd_path }}/$s done + echo "Stop and remove devture services" + + for s in $(find {{ devture_systemd_docker_base_systemd_path }}/ -type f -name "devture-*" -printf "%f\n"); do + systemctl disable --now $s + rm -f {{ devture_systemd_docker_base_systemd_path }}/$s + done + systemctl daemon-reload echo "Remove unused Docker images and resources"