]> git.openstreetmap.org Git - chef.git/blob - cookbooks/blogs/templates/default/blogs-update.erb
Suppress output from blog aggregator unless it fails completely
[chef.git] / cookbooks / blogs / templates / default / blogs-update.erb
1 #!/bin/sh
2
3 cd /srv/blogs.openstreetmap.org
4
5 bundle exec pluto \
6        --quieter \
7        --config=/srv/blogs.openstreetmap.org build \
8        --dbpath=/srv/blogs.openstreetmap.org \
9        --template=osm \
10        --output=/srv/blogs.openstreetmap.org/build \
11        /srv/blogs.openstreetmap.org/planet.ini > log.$$ 2>&1
12
13 if [ $? -ne 0 ]
14 then
15     cat log.$$
16 fi
17
18 rm -f log.$$