From: Grant Slater Date: Fri, 11 Aug 2023 18:44:28 +0000 (+0100) Subject: civicrm: Use rsync delay-updates X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/068a4f9021d424f002e4b99afab327bc9611d304 civicrm: Use rsync delay-updates Without delay-updates there is an increased risk of web request running against partial updated site. --- diff --git a/cookbooks/civicrm/recipes/default.rb b/cookbooks/civicrm/recipes/default.rb index f21f5fc6d..62766ceb3 100644 --- a/cookbooks/civicrm/recipes/default.rb +++ b/cookbooks/civicrm/recipes/default.rb @@ -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