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