Fixup civicrm settings
authorTom Hughes <tom@compton.nu>
Mon, 24 Mar 2014 10:27:57 +0000 (10:27 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 24 Mar 2014 10:27:57 +0000 (10:27 +0000)
cookbooks/civicrm/recipes/default.rb

index 27875bead23106a9920579d1fca89829e5a57ca3..fc3c77e91e08e2f8276ef82caf0a954998747414 100644 (file)
@@ -111,15 +111,15 @@ settings = edit_file "#{civicrm_directory}/civicrm/templates/CRM/common/civicrm.
   line.gsub!(/%%dbPass%%/, database_password)
   line.gsub!(/%%dbHost%%/, "localhost")
   line.gsub!(/%%dbName%%/, "civicrm")
-  line.gsub!(/%%crmRoot%%/, "#{civicrm_directory}/civicrm")
-  line.gsub!(/%%templateCompileDir%%/, "/srv/crm.osmfoundation.org/wp-content/plugins/files/civicrm/templates_c")
+  line.gsub!(/%%crmRoot%%/, "#{civicrm_directory}/civicrm/")
+  line.gsub!(/%%templateCompileDir%%/, "/srv/crm.osmfoundation.org/wp-content/plugins/files/civicrm/templates_c/")
   line.gsub!(/%%baseURL%%/, "http://crm.osmfoundation.org/")
   line.gsub!(/%%siteKey%%/, site_key)
 
   line
 end
 
-file "#{civicrm_directory}/civicrm/civicrm.settings.php" do
+file "#{civicrm_directory}/civicrm.settings.php" do
   owner "wordpress"
   group "wordpress"
   mode 0644