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
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
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
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