Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change maintenance mode info wording #37925

Merged
merged 1 commit into from
Apr 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions lib/private/Console/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,17 +178,13 @@ public function loadCommands(
* 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>');
}
}

Expand Down