From 20e70b7efae816d257b04a6b4845377ccfb99abf Mon Sep 17 00:00:00 2001 From: Dominik Dzienia Date: Sun, 4 Jan 2026 22:03:49 +0000 Subject: [PATCH] Add cleanup calls around container restart in patch_docker_compose Call do_cleanup_sys before and do_cleanup_docker after restarting containers to ensure proper cleanup during configuration patching. --- install.sh | 2 ++ src/lib.sh | 2 ++ updated | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index e0b1b4f..14b6367 100755 --- a/install.sh +++ b/install.sh @@ -776,8 +776,10 @@ patch_docker_compose() { msgcheck "Docker compose file patched" # Restart containers only if they were already running if [ "$containers_running" -eq 1 ]; then + do_cleanup_sys ohai "Restarting containers to apply patched configuration..." update_containers + do_cleanup_docker msgcheck "Containers restarted" fi fi diff --git a/src/lib.sh b/src/lib.sh index 871ea86..34f5c02 100644 --- a/src/lib.sh +++ b/src/lib.sh @@ -760,8 +760,10 @@ patch_docker_compose() { msgcheck "Docker compose file patched" # Restart containers only if they were already running if [ "$containers_running" -eq 1 ]; then + do_cleanup_sys ohai "Restarting containers to apply patched configuration..." update_containers + do_cleanup_docker msgcheck "Containers restarted" fi fi diff --git a/updated b/updated index 322854e..ae11af5 100644 --- a/updated +++ b/updated @@ -1 +1 @@ -2026-01-04T18:53:49.085Z \ No newline at end of file +2026-01-04T22:01:38.168Z \ No newline at end of file