notifies :run, "execute[compile_nominatim]", :immediately
end
+remote_file "#{source_directory}/data/country_osm_grid.sql.gz" do
+ action :create_if_missing
+ source "https://www.nominatim.org/data/country_grid.sql.gz"
+ owner "nominatim"
+ group "nominatim"
+ mode "644"
+end
+
execute "compile_nominatim" do
action :nothing
user "nominatim"
end
end
-remote_file "#{source_directory}/data/country_osm_grid.sql.gz" do
- action :create_if_missing
- source "https://www.nominatim.org/data/country_grid.sql.gz"
- owner "nominatim"
- group "nominatim"
- mode "644"
-end
-
if node[:nominatim][:state] == "off"
cron_d "nominatim-backup" do
action :delete