]> git.openstreetmap.org Git - chef.git/commitdiff
Use fonts-unifont for unifont on 22.04
authorTom Hughes <tom@compton.nu>
Wed, 29 Jun 2022 16:38:45 +0000 (17:38 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 29 Jun 2022 16:39:05 +0000 (17:39 +0100)
cookbooks/tile/recipes/default.rb

index 4f60005e7e001f1406462dd37724747bb2150d6b..7f09a277704815e66dc1b5695ea05c2a31fe5844 100644 (file)
@@ -163,12 +163,18 @@ python_package "pyotp" do
   python_version "3"
 end
 
-package %w[
+unifont = if node[:lsb][:release].to_f < 22.04
+            "ttf-unifont"
+          else
+            "fonts-unifont"
+          end
+
+package %W[
   fonts-noto-cjk
   fonts-noto-hinted
   fonts-noto-unhinted
   fonts-hanazono
-  ttf-unifont
+  #{unifont}
 ]
 
 ["NotoSansArabicUI-Regular.ttf", "NotoSansArabicUI-Bold.ttf"].each do |font|