From 693e39e0bdd3a4641461bc8167ac13a64cd9901e Mon Sep 17 00:00:00 2001 From: mbussolotto Date: Wed, 22 May 2024 17:31:52 +0200 Subject: [PATCH] stop proxy before upgrading --- mgrpxy/shared/podman/podman.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mgrpxy/shared/podman/podman.go b/mgrpxy/shared/podman/podman.go index d64b0e72a..3adb30f25 100644 --- a/mgrpxy/shared/podman/podman.go +++ b/mgrpxy/shared/podman/podman.go @@ -192,7 +192,9 @@ func Upgrade(globalFlags *types.GlobalFlags, flags *PodmanProxyFlags, cmd *cobra if _, err := exec.LookPath("podman"); err != nil { return fmt.Errorf(L("install podman before running this command")) } - + if err := podman.StopService(podman.ProxyService); err != nil { + return err + } httpdImage, err := getContainerImage(&flags.ProxyImageFlags, "httpd") if err != nil { log.Info().Msgf(L("cannot find httpd image: it will no be upgraded"))