Skip to content

Commit f862f55

Browse files
committed
Remove composer warning by setting proper env variables
Signed-off-by: Riddhesh Sanghvi <riddheshsanghvi96@gmail.com>
1 parent e930bab commit f862f55

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Admin_Tools_Command.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,8 @@ private function move_config_file( $template_file, $config_file ) {
245245
private function composer_install( $tool_path ) {
246246

247247
putenv( 'COMPOSER_HOME=' . EE_VENDOR_DIR . '/bin/composer' );
248+
putenv( 'COMPOSER_CACHE_DIR=/dev/null' );
249+
putenv( 'COMPOSER_ALLOW_SUPERUSER=1' );
248250
chdir( $tool_path );
249251
$input = new ArrayInput( array( 'command' => 'update' ) );
250252
$application = new Application();

0 commit comments

Comments
 (0)