group "nominatim"
mode 0o755
variables :bindir => source_directory,
+ :srcdir => source_directory,
:logfile => "#{node[:nominatim][:logdir]}/update.log",
:branch => node[:nominatim][:revision],
:update_stop_file => "#{home_directory}/status/updates_disabled"
group "nominatim"
mode 0o755
variables :bindir => build_directory,
+ :srcdir => source_directory,
:logfile => "#{node[:nominatim][:logdir]}/update.log",
:branch => node[:nominatim][:revision],
:update_stop_file => "#{basedir}/status/updates_disabled"
./utils/update.php --no-npi --import-osmosis
+ pushd <%= @srcdir %>
if git fetch origin; then
# will trigger recompilation if necessary
git merge origin/<%= @branch %>
else
echo "WARNING: git fetch failed."
fi
+ popd
# sleep a bit if updates take less than a minute
endtime=`date +%s`