From 6a04405167cd4c7db789f92826844564457f7d02 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Tue, 25 Apr 2023 18:43:55 +0200 Subject: fix: change maintenance mode info wording In maintenance mode the database is accessible and it's possible to execute other commands then maintenance:mode Signed-off-by: Daniel Kesselberg --- lib/private/Console/Application.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/private/Console/Application.php b/lib/private/Console/Application.php index 07e9dbb317b..792fde727a1 100644 --- a/lib/private/Console/Application.php +++ b/lib/private/Console/Application.php @@ -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( - 'Nextcloud is in maintenance mode, hence the database isn\'t accessible.' . PHP_EOL . - 'Cannot perform any command except \'maintenance:mode --off\'' . PHP_EOL - ); + $errOutput->writeln('Nextcloud is in maintenance mode, no apps are loaded.'); + $errOutput->writeln('Commands provided by apps are unavailable.'); } } -- cgit v1.2.3