aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorDaniel <mail@danielkesselberg.de>2023-04-26 13:55:22 +0200
committerGitHub <noreply@github.com>2023-04-26 13:55:22 +0200
commit81e4390e32dfffac1191f527d45dc29bc90f9e87 (patch)
tree23424e26b067caa20ec56b7633190984dd16cd8d /lib/private
parentea67129b64eaf56f185dda0a1b6a57887021f686 (diff)
parent155ea6a54c276073388489cc040da9531925f99c (diff)
downloadnextcloud-server-81e4390e32dfffac1191f527d45dc29bc90f9e87.tar.gz
nextcloud-server-81e4390e32dfffac1191f527d45dc29bc90f9e87.zip
Merge pull request #37925 from nextcloud/feat-update-maintenance-mode-hint
fix: change maintenance mode info wording
Diffstat (limited to 'lib/private')
-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>');
}
}