Set HOME when runnong composer

This commit is contained in:
Tobias Herre 2023-11-03 12:53:49 +01:00
parent f71d485b13
commit 9b76402251
1 changed files with 3 additions and 4 deletions

7
php.cf
View File

@ -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"};