X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/59d59506d1c9d2c867d1f6662e25453c899f13d8..dd35c593b7471ccbe5298f8e720d7b9b4ee6a967:/cookbooks/civicrm/recipes/default.rb diff --git a/cookbooks/civicrm/recipes/default.rb b/cookbooks/civicrm/recipes/default.rb index e6d1c0015..ed8f51f42 100644 --- a/cookbooks/civicrm/recipes/default.rb +++ b/cookbooks/civicrm/recipes/default.rb @@ -8,7 +8,7 @@ # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, @@ -37,7 +37,6 @@ end wordpress_site "join.osmfoundation.org" do aliases "crm.osmfoundation.org" - ssl_enabled true database_name "civicrm" database_user "civicrm" database_password database_password @@ -54,7 +53,7 @@ end wordpress_plugin "sitepress-multilingual-cms" do site "join.osmfoundation.org" - repository "git://chef.openstreetmap.org/sitepress-multilingual-cms.git" + repository "https://git.openstreetmap.org/private/sitepress-multilingual-cms.git" end wordpress_plugin "contact-form-7" do @@ -129,7 +128,7 @@ directory extensions_directory do mode 0o755 end -node[:civicrm][:extensions].each do |_, details| +node[:civicrm][:extensions].each_value do |details| git "#{extensions_directory}/#{details[:name]}" do action :sync repository details[:repository] @@ -154,6 +153,7 @@ settings = edit_file "#{civicrm_directory}/civicrm/templates/CRM/common/civicrm. line.gsub!(/%%baseURL%%/, "http://join.osmfoundation.org/") line.gsub!(/%%siteKey%%/, site_key) line.gsub!(%r{// *(.*'ext_repo_url'.*)$}, "\\1") + line.gsub!(%r{// *define\('CIVICRM_CMSDIR', '/path/to/install/root/'\);}, "define('CIVICRM_CMSDIR', '/srv/join.osmfoundation.org');") line end