First version of elasticsearch init script