X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ac5bccf32f094c56b17152774719ffb07be1d90c..0885511637f2cab59071459563704c79be69249c:/cookbooks/civicrm/recipes/default.rb diff --git a/cookbooks/civicrm/recipes/default.rb b/cookbooks/civicrm/recipes/default.rb index fc3c77e91..992d928be 100644 --- a/cookbooks/civicrm/recipes/default.rb +++ b/cookbooks/civicrm/recipes/default.rb @@ -20,6 +20,8 @@ include_recipe "wordpress" include_recipe "mysql" +package "wkhtmltopdf" + passwords = data_bag_item("civicrm", "passwords") database_password = passwords["database"] @@ -126,10 +128,18 @@ file "#{civicrm_directory}/civicrm.settings.php" do content settings end +template "/etc/cron.d/osmf-crm" do + source "cron.erb" + owner "root" + group "root" + mode 0600 + variables :directory => civicrm_directory, :passwords => passwords +end + template "/etc/cron.daily/osmf-crm-backup" do source "backup.cron.erb" - owner "wordpress" - group "wordpress" + owner "root" + group "root" mode 0750 variables :passwords => passwords end