From 41fd1576ad862553567b372a2efb3650964fd525 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Thu, 30 Jul 2020 12:33:09 +0200 Subject: [PATCH] Override the header template to remove the Roboto font Using the system font instead --- .../files/custom/templates/custom/header.tmpl | 3 +++ site-cookbooks/kosmos_gitea/recipes/default.rb | 12 +++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 site-cookbooks/kosmos_gitea/files/custom/templates/custom/header.tmpl diff --git a/site-cookbooks/kosmos_gitea/files/custom/templates/custom/header.tmpl b/site-cookbooks/kosmos_gitea/files/custom/templates/custom/header.tmpl new file mode 100644 index 0000000..61f1c59 --- /dev/null +++ b/site-cookbooks/kosmos_gitea/files/custom/templates/custom/header.tmpl @@ -0,0 +1,3 @@ + diff --git a/site-cookbooks/kosmos_gitea/recipes/default.rb b/site-cookbooks/kosmos_gitea/recipes/default.rb index dea96a4..2cc43c5 100644 --- a/site-cookbooks/kosmos_gitea/recipes/default.rb +++ b/site-cookbooks/kosmos_gitea/recipes/default.rb @@ -56,7 +56,7 @@ directory working_directory do mode "0750" end -%w(custom custom/options custom/options/label).each do |path| +%w(custom custom/options custom/options/label custom/templates custom/templates/custom).each do |path| directory "#{working_directory}/#{path}" do owner "git" group "git" @@ -70,6 +70,16 @@ cookbook_file "#{working_directory}/custom/options/label/Kosmos" do owner "git" group "git" mode "0640" + notifies :restart, "service[gitea]", :delayed +end + +# Kosmos header template +cookbook_file "#{working_directory}/custom/templates/custom/header.tmpl" do + source "custom/templates/custom/header.tmpl" + owner "git" + group "git" + mode "0640" + notifies :restart, "service[gitea]", :delayed end directory config_directory do