Skip to content

Commit de93a71

Browse files
committed
Fix bug with server.xml contents on MQ upgrade
1 parent 8dc7f05 commit de93a71

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Diff for: cmd/runmqserver/webserver.go

+8-1
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,15 @@ func configureWebServer(keyLabel string, p12Truststore tls.KeyStoreData) (string
5959

6060
webKeystore := ""
6161

62+
// Copy server.xml file to ensure that we have the latest expected contents - this file is only populated on QM creation
63+
err := copy.CopyFile("/opt/mqm/samp/web/server.xml", "/var/mqm/web/installations/Installation1/servers/mqweb/server.xml")
64+
if err != nil {
65+
log.Error(err)
66+
return "", err
67+
}
68+
6269
// Configure TLS for the Web Console
63-
err := tls.ConfigureWebTLS(keyLabel, log)
70+
err = tls.ConfigureWebTLS(keyLabel, log)
6471
if err != nil {
6572
return "", err
6673
}

0 commit comments

Comments
 (0)