From 068a4f9021d424f002e4b99afab327bc9611d304 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Fri, 11 Aug 2023 19:44:28 +0100 Subject: [PATCH] civicrm: Use rsync delay-updates Without delay-updates there is an increased risk of web request running against partial updated site. --- cookbooks/civicrm/recipes/default.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5