diff options
author | Josh <josh.t.richards@gmail.com> | 2024-12-21 11:14:20 -0500 |
---|---|---|
committer | Andy Scherzinger <info@andy-scherzinger.de> | 2025-02-05 22:57:40 +0100 |
commit | 724811adf8c68cc5d485696485da0a0d03408269 (patch) | |
tree | 5d7877772d6870874d60eaca109f9397acff20bb /lib/private | |
parent | c45736c5665511046fd71f77fc6b5af14d569d4b (diff) | |
download | nextcloud-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>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Console/Application.php | 2 |
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'); |