Skip to content

Commit

Permalink
Fix bug with server.xml contents on MQ upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
sdmarshall79 committed Nov 30, 2023
1 parent 8dc7f05 commit de93a71
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cmd/runmqserver/webserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,15 @@ func configureWebServer(keyLabel string, p12Truststore tls.KeyStoreData) (string

webKeystore := ""

// Copy server.xml file to ensure that we have the latest expected contents - this file is only populated on QM creation
err := copy.CopyFile("/opt/mqm/samp/web/server.xml", "/var/mqm/web/installations/Installation1/servers/mqweb/server.xml")
if err != nil {
log.Error(err)
return "", err
}

// Configure TLS for the Web Console
err := tls.ConfigureWebTLS(keyLabel, log)
err = tls.ConfigureWebTLS(keyLabel, log)
if err != nil {
return "", err
}
Expand Down

0 comments on commit de93a71

Please sign in to comment.