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

fix: when already upgrading, don't instruct to run `occ upgrade`
fix-jobs-app-disable
Louis 2025-02-06 16:32:42 +07:00 committed by GitHub
commit f9c03f7606
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

@ -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');