aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Console
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2023-04-25 18:43:55 +0200
committerDaniel Kesselberg <mail@danielkesselberg.de>2023-04-26 11:58:37 +0200
commit155ea6a54c276073388489cc040da9531925f99c (patch)
treef915128f9ac7a024d5253031f14c284e1ff3f9aa /lib/private/Console
parentd60172567f7b45eade2d5ddc3a2b5a5d0fdca69d (diff)
downloadnextcloud-server-155ea6a54c276073388489cc040da9531925f99c.tar.gz
nextcloud-server-155ea6a54c276073388489cc040da9531925f99c.zip
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>
Diffstat (limited to 'lib/private/Console')
-rw-r--r--lib/private/Console/Application.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/private/Console/Application.php b/lib/private/Console/Application.php
index 0ed436fb0e6..94956364390 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(
- '<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>');
}
}