Skip to content

Commit 2f73260

Browse files
committed
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 <mail@danielkesselberg.de>
1 parent d601725 commit 2f73260

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

lib/private/Console/Application.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
namespace OC\Console;
3232

3333
use OC\MemoryInfo;
34+
use OC\Migration\ConsoleOutput;
3435
use OC\NeedsUpdateException;
3536
use OC_App;
3637
use OCP\AppFramework\QueryException;
@@ -178,17 +179,13 @@ public function loadCommands(
178179
* for writing outputs.
179180
* @return void
180181
*/
181-
private function writeMaintenanceModeInfo(
182-
InputInterface $input, ConsoleOutputInterface $output
183-
) {
182+
private function writeMaintenanceModeInfo(InputInterface $input, ConsoleOutputInterface $output): void {
184183
if ($input->getArgument('command') !== '_completion'
185184
&& $input->getArgument('command') !== 'maintenance:mode'
186185
&& $input->getArgument('command') !== 'status') {
187186
$errOutput = $output->getErrorOutput();
188-
$errOutput->writeln(
189-
'<comment>Nextcloud is in maintenance mode, hence the database isn\'t accessible.' . PHP_EOL .
190-
'Cannot perform any command except \'maintenance:mode --off\'</comment>' . PHP_EOL
191-
);
187+
$errOutput->writeln('<info>Nextcloud is in maintenance mode, no apps are loaded.</info>');
188+
$errOutput->writeln('<info>Commands provided by apps are unavailable.</info>');
192189
}
193190
}
194191

0 commit comments

Comments
 (0)