]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/civicrm/recipes/default.rb
Install wkhtmltopdf for civicrm
[chef.git] / cookbooks / civicrm / recipes / default.rb
index fc3c77e91e08e2f8276ef82caf0a954998747414..992d928bec6299a0133345f8f3906cc6b3f7359a 100644 (file)
@@ -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