From d40114e0852f15db09394e591eff87b8cb9223e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= Date: Tue, 12 Nov 2024 12:04:24 +0100 Subject: [PATCH] Reload systemd config before systemctl cat in upgrade The systemd config needs to be reloaded between the config files cleanup step and the service upgrade as that one starts with a systemctl cat. --- mgradm/shared/podman/podman.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mgradm/shared/podman/podman.go b/mgradm/shared/podman/podman.go index 2e1b71c7d..12949c154 100644 --- a/mgradm/shared/podman/podman.go +++ b/mgradm/shared/podman/podman.go @@ -434,6 +434,10 @@ func Upgrade( return err } + if err := systemd.ReloadDaemon(false); err != nil { + return err + } + if err := updateServerSystemdService(); err != nil { return err }