export HOME when running composer

This commit is contained in:
Tobias Herre 2023-11-03 12:57:09 +01:00
parent bef3642f49
commit c93f4581c4
1 changed files with 3 additions and 1 deletions

View File

@ -116,7 +116,7 @@ commands:
"/bin/sh" "/bin/sh"
# args => "-c 'cd $(cfg[install_dir]) && $(php_composer.exe) -q -n create-project --prefer-dist --no-dev opensolutions/vimbadmin'", # args => "-c 'cd $(cfg[install_dir]) && $(php_composer.exe) -q -n create-project --prefer-dist --no-dev opensolutions/vimbadmin'",
args => "-c 'cd $(cfg[install_dir]) && $(php_composer.exe) update -q --no-cache && $(php_composer.exe) install --no-cache -q --prefer-dist --no-dev", args => "-c 'export HOME=$(cfg[install_dir]) && cd $(cfg[install_dir]) && $(php_composer.exe) update -q --no-cache && $(php_composer.exe) install --no-cache -q --prefer-dist --no-dev'",
handle => "vimbadmin_composed", handle => "vimbadmin_composed",
depends_on => { depends_on => {
"vimbadmin_pkgs_installed" "vimbadmin_pkgs_installed"
@ -160,4 +160,6 @@ body contain vimbadmin_cmd
exec_owner => "$(apache.www_user)"; exec_owner => "$(apache.www_user)";
exec_group => "$(apache.www_group)"; exec_group => "$(apache.www_group)";
useshell=>"useshell";
} }