Skip to content

Commit

Permalink
stop proxy before upgrading
Browse files Browse the repository at this point in the history
  • Loading branch information
mbussolotto committed May 22, 2024
1 parent fb984d5 commit 693e39e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mgrpxy/shared/podman/podman.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit 693e39e

Please sign in to comment.