summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-05-17 13:43:36 +0200
committerGitHub <noreply@github.com>2023-05-17 13:43:36 +0200
commit4e1b6ee168839791dce210bbbe6d236480dffb00 (patch)
tree12c49f1780bb73bf9edf3a5d8265e16d9c05cc42
parent02dbc045335796bab9c514a2b0e98780624805f5 (diff)
parent6a04405167cd4c7db789f92826844564457f7d02 (diff)
downloadnextcloud-server-4e1b6ee168839791dce210bbbe6d236480dffb00.tar.gz
nextcloud-server-4e1b6ee168839791dce210bbbe6d236480dffb00.zip
Merge pull request #38009 from nextcloud/backport/37925/stable26
[stable26] fix: change maintenance mode info wording
-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 07e9dbb317b..792fde727a1 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>');
}
}