aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis <louis@chmn.me>2025-02-06 16:32:42 +0100
committerGitHub <noreply@github.com>2025-02-06 16:32:42 +0100
commitf9c03f760653c4293cbf29560e1cacbd3cf8a997 (patch)
tree6f5768b9e75b68a1a76f75c6a903616ebf6f25c8
parent796055e8b27b924cc5e7c1ba4c6595f4c6e7fb71 (diff)
parent724811adf8c68cc5d485696485da0a0d03408269 (diff)
downloadnextcloud-server-f9c03f760653c4293cbf29560e1cacbd3cf8a997.tar.gz
nextcloud-server-f9c03f760653c4293cbf29560e1cacbd3cf8a997.zip
Merge pull request #49955 from nextcloud/occ-upgrade-reminder
fix: when already upgrading, don't instruct to run `occ upgrade`
-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');