]> git.openstreetmap.org Git - chef.git/commitdiff
the civicrm settings location moved
authormichael spreng <code@m.spreng.ch>
Wed, 10 Jul 2024 06:41:41 +0000 (08:41 +0200)
committerGrant <github@firefishy.com>
Wed, 10 Jul 2024 15:56:04 +0000 (16:56 +0100)
the civicrm settings location moved from <webroot>/wp-content/plugins/civicrm
to <webroot>/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

index a5491bd412d45ce0e9a9d82657f1dfb4e582f5c5..4a0a5bcc1fdfa00bd50564f1bad1c2dabbbfe351 100644 (file)
@@ -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"