Split SSO admin user list on newlines (#229)

This commit is contained in:
Stephen Marshall
2018-10-12 14:13:20 +01:00
committed by Robert Parker
parent 4c1d124484
commit c455d696b2

View File

@@ -121,7 +121,7 @@ func configureSSO() error {
}
// Process SSO template for generating file mqwebuser.xml
adminUsers := strings.Split(os.Getenv("MQ_WEB_ADMIN_USERS"), ",")
adminUsers := strings.Split(os.Getenv("MQ_WEB_ADMIN_USERS"), "\n")
err = mqtemplate.ProcessTemplateFile(mqwebDir+"/mqwebuser.xml.tpl", mqwebDir+"/mqwebuser.xml", map[string][]string{"AdminUser": adminUsers}, log)
if err != nil {
return err