Merge pull request #49955 from nextcloud/occ-upgrade-reminder

fix: when already upgrading, don't instruct to run `occ upgrade`
This commit is contained in:
Louis 2025-02-06 16:32:42 +01:00 committed by GitHub
commit f9c03f7606
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -125,7 +125,7 @@ class Application {
$errorOutput->writeln('Nextcloud is not installed - only a limited number of commands are available');
}
} catch (NeedsUpdateException) {
if ($input->getArgument('command') !== '_completion') {
if ($input->getArgument('command') !== '_completion' && $input->getArgument('command') !== 'upgrade') {
$errorOutput = $output->getErrorOutput();
$errorOutput->writeln('Nextcloud or one of the apps require upgrade - only a limited number of commands are available');
$errorOutput->writeln('You may use your browser or the occ upgrade command to do the upgrade');