Update the elasticsearch init script with a template