Browse Source

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>
pull/37925/head
Daniel Kesselberg 3 years ago
parent
commit
155ea6a54c
No known key found for this signature in database GPG Key ID: 36E3664E099D0614
  1. 10
      lib/private/Console/Application.php

10
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(
'<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>');
}
}

Loading…
Cancel
Save