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.
develop
Dominik Dzienia 3 weeks ago
parent aaac1ef415
commit 20e70b7efa

@ -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

@ -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

@ -1 +1 @@
2026-01-04T18:53:49.085Z
2026-01-04T22:01:38.168Z
Loading…
Cancel
Save