From 14d2cbf9d0167323f6cdd1abd575b0a144a205a8 Mon Sep 17 00:00:00 2001 From: michael spreng Date: Wed, 10 Jul 2024 08:41:41 +0200 Subject: [PATCH] the civicrm settings location moved the civicrm settings location moved from /wp-content/plugins/civicrm to /wp-content/uploads/civicrm See https://civicrm.stackexchange.com/questions/25313/where-is-the-file-civicrm-settings-php-in-wp/25314#25314 --- cookbooks/civicrm/recipes/default.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cookbooks/civicrm/recipes/default.rb b/cookbooks/civicrm/recipes/default.rb index a5491bd41..4a0a5bcc1 100644 --- a/cookbooks/civicrm/recipes/default.rb +++ b/cookbooks/civicrm/recipes/default.rb @@ -224,7 +224,13 @@ settings = edit_file "#{civicrm_directory}/civicrm/templates/CRM/common/civicrm. line end -file "#{civicrm_directory}/civicrm.settings.php" do +directory "/srv/supporting.openstreetmap.org/wp-content/uploads/civicrm" do + owner "www-data" + group "www-data" + mode "755" +end + +file "/srv/supporting.openstreetmap.org/wp-content/uploads/civicrm/civicrm.settings.php" do owner "wordpress" group "wordpress" mode "644" -- 2.39.5