Elasticsearch river settings

Hi,

I'm very new to Elasticsearch and I'm still discovering all the possibilities.
For now my main concern is setting up a river (the rssriver from dadoonet, for example)

I have installed the plugin and run elasticsearch, this part is ok.

Now, would it be possible to include the following instructions into a conf file and how? I'm as much struggling with the syntax as with the settings, I confess. Or maybe some shell script would be more suitable?

$ curl -XPUT 'http://localhost:9200/lefigaro/' -d '{}'

$ curl -XPUT 'http://localhost:9200/lefigaro/page/_mapping' -d '{
"page" : {
"properties" : {
"title" : {"type" : "string", "analyzer" : "french"},
"description" : {"type" : "string", "analyzer" : "french"},
"author" : {"type" : "string"},
"link" : {"type" : "string"}
}
}
}'

$ curl -XPUT 'localhost:9200/_river/lefigaro/_meta' -d '{
"type": "rss",
"rss": {
"feeds" : [ {
"name": "lefigaro",
"url": "http://rss.lefigaro.fr/lefigaro/laune",
"update_rate": 900000
}
]
}
}'

Thanks in advance
Regards,

Sébastien Sabat