X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/1c848471a16f9d1ee1fc8a327af110447ea1ef4c..fe34d79119700c8c8b5cce98e1d43ebbb71622e2:/cookbooks/civicrm/recipes/default.rb diff --git a/cookbooks/civicrm/recipes/default.rb b/cookbooks/civicrm/recipes/default.rb index 13b05afcf..58cea555e 100644 --- a/cookbooks/civicrm/recipes/default.rb +++ b/cookbooks/civicrm/recipes/default.rb @@ -124,7 +124,7 @@ execute "civicrm-load-data" do cwd "/usr/share/drupal7/sites/all/modules/civicrm" user "root" group "root" - notifies :run, resources(:execute => "civicrm-load-acl") + notifies :run, "execute[civicrm-load-acl]" end execute "civicrm-load" do @@ -133,7 +133,7 @@ execute "civicrm-load" do cwd "/usr/share/drupal7/sites/all/modules/civicrm" user "root" group "root" - notifies :run, resources(:execute => "civicrm-load-data") + notifies :run, "execute[civicrm-load-data]" end execute "civicrm-gencode" do @@ -142,7 +142,7 @@ execute "civicrm-gencode" do user "root" group "root" creates "#{civicrm_directory}/civicrm-version.php" - notifies :run, resources(:execute => "civicrm-load") + notifies :run, "execute[civicrm-load]" end directory "/data/crm.osmfoundation.org/civicrm/en_US" do @@ -156,3 +156,11 @@ directory "/data/crm.osmfoundation.org/civicrm/en_US/ConfigAndLog" do group "www-data" mode "0775" end + +template "/etc/cron.daily/osmf-crm-backup" do + source "backup.cron.erb" + owner "root" + group "root" + mode 0750 + variables :passwords => passwords +end