]> git.openstreetmap.org Git - chef.git/commitdiff
Set COMPOSER_HOME when running composer
authorTom Hughes <tom@compton.nu>
Sun, 1 Nov 2020 19:22:23 +0000 (19:22 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 1 Nov 2020 19:22:23 +0000 (19:22 +0000)
cookbooks/mediawiki/resources/extension.rb
cookbooks/mediawiki/resources/site.rb

index 8e7fbaa4be4e68a6103552e172970ef582ac655b..9f477a53f695a66c8423f1c6d563f2263d3c1d43 100644 (file)
@@ -89,6 +89,7 @@ action :create do
     cwd mediawiki_directory
     user node[:mediawiki][:user]
     group node[:mediawiki][:group]
+    environment "COMPOSER_HOME" => site_directory
     only_if { ::File.exist?("#{extension_directory}/composer.json") }
     subscribes :run, "git[#{extension_directory}]"
   end
index 797b59409602f2ee0d0beab8cf5d884ef51fcfbf..1bd9acb93ab2f81b9e0ff374d39c59173f129de4 100644 (file)
@@ -125,6 +125,7 @@ action :create do
     cwd mediawiki_directory
     user node[:mediawiki][:user]
     group node[:mediawiki][:group]
+    environment "COMPOSER_HOME" => site_directory
   end
 
   template "#{mediawiki_directory}/composer.local.json" do