]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/civicrm/recipes/default.rb
civicrm: Use rsync delay-updates
[chef.git] / cookbooks / civicrm / recipes / default.rb
index f21f5fc6da2ea4aeb2174b07a6ce3b9faf9a38e1..62766ceb38e74d0b41e0975bc478b89943b31ff7 100644 (file)
@@ -135,7 +135,7 @@ end
 
 execute "/opt/civicrm-#{civicrm_version}/civicrm" do
   action :nothing
-  command "rsync --archive --delete /opt/civicrm-#{civicrm_version}/civicrm/ #{civicrm_directory}"
+  command "rsync --archive --delete --delete-delay --delay-updates /opt/civicrm-#{civicrm_version}/civicrm/ #{civicrm_directory}"
   user "wordpress"
   group "wordpress"
   subscribes :run, "archive_file[#{cache_dir}/civicrm-#{civicrm_version}-wordpress.zip]", :immediately