X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/aeaa46f3071de018b5c5e0f5678cb5b4082e3ddc..eba22a7d197957844086def0e158481d4f701692:/cookbooks/civicrm/recipes/default.rb diff --git a/cookbooks/civicrm/recipes/default.rb b/cookbooks/civicrm/recipes/default.rb index 936364026..802294116 100644 --- a/cookbooks/civicrm/recipes/default.rb +++ b/cookbooks/civicrm/recipes/default.rb @@ -21,9 +21,12 @@ include_recipe "wordpress" include_recipe "mysql" package %w[ + php-xml + php-curl rsync unzip wkhtmltopdf + php-bcmath ] cache_dir = Chef::Config[:file_cache_path] @@ -121,7 +124,7 @@ execute "/opt/civicrm-#{civicrm_version}/civicrm" do subscribes :run, "execute[#{cache_dir}/civicrm-#{civicrm_version}-l10n.tar.gz]", :immediately end -directory "/srv/join.osmfoundation.org/wp-content/plugins/files" do +directory "/srv/join.osmfoundation.org/wp-content/uploads" do owner "www-data" group "www-data" mode "755" @@ -140,7 +143,6 @@ node[:civicrm][:extensions].each_value do |details| action :sync repository details[:repository] revision details[:revision] - depth 1 user "wordpress" group "wordpress" end @@ -157,10 +159,9 @@ settings = edit_file "#{civicrm_directory}/civicrm/templates/CRM/common/civicrm. line.gsub!(/%%dbHost%%/, "localhost") line.gsub!(/%%dbName%%/, "civicrm") line.gsub!(/%%crmRoot%%/, "#{civicrm_directory}/civicrm/") - line.gsub!(/%%templateCompileDir%%/, "/srv/join.osmfoundation.org/wp-content/plugins/files/civicrm/templates_c/") + line.gsub!(/%%templateCompileDir%%/, "/srv/join.osmfoundation.org/wp-content/uploads/civicrm/templates_c/") 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