Added a self-update suggestion in the upgrader

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-05-25 19:18:37 -07:00
parent 0ea6671bfa
commit fe3b9f9e86

View file

@ -393,13 +393,17 @@ if (file_exists('composer.phar')) {
} else { } else {
echo "-- We couldn't find a local composer.phar. No worries, trying globally.\n";
echo "Since you are running composer globally, we won't try to update it for you.\n";
echo "If you run into issues with this step, try running `composer self-update` \n";
echo "before running this updater again\n\n";
if ($app_environment == 'production') { if ($app_environment == 'production') {
$composer = shell_exec('composer install --no-dev --prefer-source'); $composer = shell_exec('composer install --no-dev --prefer-source');
} else { } else {
$composer = shell_exec('composer install --prefer-source'); $composer = shell_exec('composer install --prefer-source');
} }
echo "-- We couldn't find a local composer.phar. No worries, trying globally.\n";
$composer_dump = shell_exec('composer dump'); $composer_dump = shell_exec('composer dump');