mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -08:00
Added a self-update suggestion in the upgrader
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
0ea6671bfa
commit
fe3b9f9e86
|
@ -393,13 +393,17 @@ if (file_exists('composer.phar')) {
|
|||
|
||||
} 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') {
|
||||
$composer = shell_exec('composer install --no-dev --prefer-source');
|
||||
} else {
|
||||
$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');
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue