aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh <josh.t.richards@gmail.com>2024-12-21 11:14:20 -0500
committerGitHub <noreply@github.com>2024-12-21 11:14:20 -0500
commit288cdb003ed2f46fe5e39430d4f3d91278c9ad15 (patch)
tree131b5863d31c34c0db4b83568e95cf61b75cbeec
parent81f9fc02f89c9cb2334e5bfa4e874d36f47f4cca (diff)
downloadnextcloud-server-occ-upgrade-reminder.tar.gz
nextcloud-server-occ-upgrade-reminder.zip
fix: when already upgrading, don't instruct to run `occ upgrade`occ-upgrade-reminder
Fixes #36289 Signed-off-by: Josh <josh.t.richards@gmail.com>
-rw-r--r--lib/private/Console/Application.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Console/Application.php b/lib/private/Console/Application.php
index ac30a93a186..70bbab10621 100644
--- a/lib/private/Console/Application.php
+++ b/lib/private/Console/Application.php
@@ -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');