mirror of
https://github.com/nextcloud/server.git
synced 2026-05-19 16:39:59 -04:00
Merge pull request #38009 from nextcloud/backport/37925/stable26
[stable26] fix: change maintenance mode info wording
This commit is contained in:
commit
4e1b6ee168
1 changed files with 3 additions and 7 deletions
|
|
@ -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…
Reference in a new issue