diff --git a/internal/processmanager/winsw.go b/internal/processmanager/winsw.go index 3fb2bb2..c5e34d4 100644 --- a/internal/processmanager/winsw.go +++ b/internal/processmanager/winsw.go @@ -276,10 +276,10 @@ func (pm *WinSW) buildServiceConfig(server *domain.Server) (string, error) { serviceConfig.ServiceAccount.Username = server.User() serviceConfig.ServiceAccount.Password = password - out, err := xml.Marshal(struct { + out, err := xml.MarshalIndent(struct { WinSWServiceConfig XMLName struct{} `xml:"service"` - }{WinSWServiceConfig: serviceConfig}) + }{WinSWServiceConfig: serviceConfig}, "", " ") if err != nil { return "", errors.WithMessage(err, "failed to marshal xml") }