default[:nominatim][:postgis] = "3"
default[:nominatim][:logdir] = "/var/log/nominatim"
default[:nominatim][:repository] = "https://git.openstreetmap.org/public/nominatim.git"
-default[:nominatim][:revision] = "master"
+default[:nominatim][:revision] = "origin/master"
default[:nominatim][:enable_backup] = false
default[:nominatim][:enable_git_updates] = true
default[:nominatim][:enable_qa_tiles] = false
git fetch origin
-if git diff --exit-code origin/<%= node[:nominatim][:revision] %> >/dev/null; then
+if git diff --exit-code <%= node[:nominatim][:revision] %> >/dev/null; then
# signal that there are no new updates
exit 99
fi
-git merge origin/<%= node[:nominatim][:revision] %>
+git checkout --detach <%= node[:nominatim][:revision] %>
git submodule update
cd <%= @builddir %>
},
:nominatim => {
:dbadmins => %w[lonvia tomh],
+ :revision => "deploy",
:tablespaces => {
"dosm" => "/ssd/tablespaces/dosm",
"iosm" => "/ssd/tablespaces/iosm",