]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: change maintenance mode info wording 37925/head
authorDaniel Kesselberg <mail@danielkesselberg.de>
Tue, 25 Apr 2023 16:43:55 +0000 (18:43 +0200)
committerDaniel Kesselberg <mail@danielkesselberg.de>
Wed, 26 Apr 2023 09:58:37 +0000 (11:58 +0200)
In maintenance mode the database is accessible and it's possible to execute other commands then maintenance:mode

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
lib/private/Console/Application.php

index 0ed436fb0e6ccf42f75bc525d13932f51e750a58..94956364390db10adc28637f205dcf0a7b0aed45 100644 (file)
@@ -178,17 +178,13 @@ class Application {
         * for writing outputs.
         * @return void
         */
-       private function writeMaintenanceModeInfo(
-               InputInterface $input, ConsoleOutputInterface $output
-       ) {
+       private function writeMaintenanceModeInfo(InputInterface $input, ConsoleOutputInterface $output): void {
                if ($input->getArgument('command') !== '_completion'
                        && $input->getArgument('command') !== 'maintenance:mode'
                        && $input->getArgument('command') !== 'status') {
                        $errOutput = $output->getErrorOutput();
-                       $errOutput->writeln(
-                               '<comment>Nextcloud is in maintenance mode, hence the database isn\'t accessible.' . PHP_EOL .
-                               'Cannot perform any command except \'maintenance:mode --off\'</comment>' . PHP_EOL
-                       );
+                       $errOutput->writeln('<comment>Nextcloud is in maintenance mode, no apps are loaded.</comment>');
+                       $errOutput->writeln('<comment>Commands provided by apps are unavailable.</comment>');
                }
        }