]> git.openstreetmap.org Git - chef.git/commitdiff
civicrm: Use rsync delay-updates
authorGrant Slater <github@firefishy.com>
Fri, 11 Aug 2023 18:44:28 +0000 (19:44 +0100)
committerGrant Slater <github@firefishy.com>
Fri, 11 Aug 2023 19:07:26 +0000 (20:07 +0100)
Without delay-updates there is an increased risk of web request running against
partial updated site.

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