From 9b764022513702702cc5db24d12d954dce06e701 Mon Sep 17 00:00:00 2001 From: Tobias Herre Date: Fri, 3 Nov 2023 12:53:49 +0100 Subject: [PATCH] Set HOME when runnong composer --- php.cf | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/php.cf b/php.cf index 5979d2f..7042f18 100644 --- a/php.cf +++ b/php.cf @@ -80,19 +80,17 @@ vars: "pkgs" slist => { "php$(xversion)-cli", "php$(xversion)-common", - "php$(xversion)-pecl-zip", "php$(xversion)-pgsql", "php$(xversion)-mysqlnd", "php$(xversion)-xml", "php$(xversion)-gd", "php$(xversion)-mbstring", "php$(xversion)-intl", - "php$(xversion)-pecl-imagick-im6", "php$(xversion)-ldap", + "php$(xversion)-pecl-imagick-im6", "php-pecl-json-post", "php-pecl-apcu", "php-pecl-zip", - }; @@ -290,8 +288,9 @@ commands: handle => "php_composer_installer_downloaded", depends_on => {"php_dir_created"}; - "$(php.cli_exe) $(installer) --install-dir=/usr/local/bin --filename=composer" + "export HOME=/root && $(php.cli_exe) $(installer) --install-dir=/usr/local/bin --filename=composer" handle => "php_composer_installed", + contain => wmde_cmd_useshell, depends_on => {"php_composer_installer_downloaded"};