Skip to content

Commit

Permalink
Fix: composer update on version upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
MedShake committed Aug 30, 2024
1 parent 8c134f3 commit aab797f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions upgrade/base/sqlUpgrade_v8.1.2_v8.1.3_post.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
// composer
$initialDir=getcwd();

$pathToComposer='php '.$p['homepath'].'composer.phar';
file_put_contents($p['homepath'].'composer.phar', fopen("https://getcomposer.org/download/latest-stable/composer.phar", 'r'));

chdir($p['config']['webDirectory']);
exec('COMPOSER_HOME="/tmp/" '.$pathToComposer.' update 2>&1', $output);
chdir($p['homepath']);
exec('COMPOSER_HOME="/tmp/" '.$pathToComposer.' update 2>&1', $output);
chdir($initialDir);

0 comments on commit aab797f

Please sign in to comment.