From a93aee07a3fc8d1b6d4dbf44b09d6e922406a97d Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 12 Jan 2016 17:19:09 -0200 Subject: Composer: must set PATH for correct install --- manifests/composer.pp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/manifests/composer.pp b/manifests/composer.pp index e33894f..4ab3337 100644 --- a/manifests/composer.pp +++ b/manifests/composer.pp @@ -6,9 +6,11 @@ class php::composer { # Composer exec { 'getcomposer': - command => '/usr/bin/wget -O - https://getcomposer.org/installer | /usr/bin/php && /bin/mv composer.phar /usr/local/bin/composer', - user => 'root', - cwd => '/tmp', - creates => '/usr/local/bin/composer', + # 'The HOME or COMPOSER_HOME environment variable must be set for composer to install correctly' + environment => [ 'HOME=/root' ], + command => '/usr/bin/wget -O - https://getcomposer.org/installer | /usr/bin/php && /bin/mv composer.phar /usr/local/bin/composer', + user => 'root', + cwd => '/tmp', + creates => '/usr/local/bin/composer', } } -- cgit v1.2.3