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 0803f57 commit 2a582f3
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 2a582f3

Please sign in to comment.