group "tile"
end
- link "#{style_directory}/fonts" do
- to "/srv/tile.openstreetmap.org/fonts"
- owner "tile"
- group "tile"
- end
-
- execute "#{style_directory}/fonts" do
- action :nothing
- command "scripts/get-fonts.sh"
- cwd style_directory
- user "tile"
- group "tile"
- subscribes :run, "git[#{style_directory}]"
+ if details[:fonts_script]
+ execute details[:fonts_script] do
+ action :nothing
+ command details[:fonts_script]
+ cwd style_directory
+ user "tile"
+ group "tile"
+ subscribes :run, "git[#{style_directory}]"
+ end
end
execute "#{style_directory}/project.mml" do
:default => {
:repository => "https://github.com/gravitystorm/openstreetmap-carto.git",
:revision => "v5.6.0",
+ :fonts_script => "/srv/tile.openstreetmap.org/styles/default/scripts/get-fonts.sh",
:max_zoom => 19
}
}