From: Tom Hughes Date: Fri, 20 Oct 2017 18:05:45 +0000 (+0100) Subject: Install Noto Sans Arabic UI from github if necessary X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/929442ef54b2eb233b635c93cdcf86f2b4660c4c Install Noto Sans Arabic UI from github if necessary --- diff --git a/cookbooks/tile/recipes/default.rb b/cookbooks/tile/recipes/default.rb index 6cdf6190f..9ae3dfc93 100644 --- a/cookbooks/tile/recipes/default.rb +++ b/cookbooks/tile/recipes/default.rb @@ -130,6 +130,16 @@ package "fonts-noto-unhinted" package "fonts-hanazono" package "ttf-unifont" +["NotoSansArabicUI-Regular.ttf", "NotoSansArabicUI-Bold.ttf"].each do |font| + remote_file "/usr/share/fonts/truetype/noto/#{font}" do + action :create_if_missing + source "https://github.com/googlei18n/noto-fonts/raw/master/hinted/#{font}" + owner "root" + group "root" + mode 0o644 + end +end + directory "/srv/tile.openstreetmap.org/cgi-bin" do owner "tile" group "tile"