Instead of appending to the end of the file, signature should be available in a template (and added to the installed templates).
e.g
{{- .Signature -}}