]> git.openstreetmap.org Git - chef.git/blob - cookbooks/blogs/templates/default/blogs-update.erb
Drop brightbox ruby repository which hasn't been used for ages
[chef.git] / cookbooks / blogs / templates / default / blogs-update.erb
1 #!/bin/sh
2
3 cd /srv/blogs.openstreetmap.org
4
5 /usr/bin/bundle<%= @ruby_version %> 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.$$