]> git.openstreetmap.org Git - chef.git/blob - cookbooks/blogs/templates/default/blogs-update.erb
nominatim: switch server to new location of nominatim
[chef.git] / cookbooks / blogs / templates / default / blogs-update.erb
1 #!/bin/sh
2
3 cd /srv/blogs.openstreetmap.org
4
5 export BUNDLE_PATH="vendor/bundle"
6
7 <%= node[:ruby][:bundle] %> exec pluto \
8        --quieter \
9        --config=/srv/blogs.openstreetmap.org build \
10        --dbpath=/srv/blogs.openstreetmap.org \
11        --template=osm \
12        --output=/srv/blogs.openstreetmap.org/build \
13        /srv/blogs.openstreetmap.org/planet.ini > log.$$ 2>&1
14
15 if [ $? -ne 0 ]
16 then
17     cat log.$$
18 fi
19
20 rm -f log.$$