diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-03-20 02:42:31 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-20 02:42:31 -0600 |
commit | 20534e0d1efabfcca28f9c446196022b988dbb6a (patch) | |
tree | c787e5b13b0f0714700c2566195ccabe82de93af /lib | |
parent | daa7e1109598417e133d756083b8fc8c75a2850f (diff) | |
parent | 590e98a659ccc8cfadb51e35458e882986c05c7c (diff) | |
download | nextcloud-server-20534e0d1efabfcca28f9c446196022b988dbb6a.tar.gz nextcloud-server-20534e0d1efabfcca28f9c446196022b988dbb6a.zip |
Merge pull request #3943 from nextcloud/downstream-27318
Output maintenance mode message on STDERR
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Console/Application.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Console/Application.php b/lib/private/Console/Application.php index 7d2f03d593e..693381ea2b4 100644 --- a/lib/private/Console/Application.php +++ b/lib/private/Console/Application.php @@ -37,6 +37,7 @@ use Symfony\Component\Console\Application as SymfonyApplication; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; +use Symfony\Component\Console\Output\ConsoleOutputInterface; use Symfony\Component\EventDispatcher\EventDispatcherInterface; class Application { @@ -97,7 +98,8 @@ class Application { throw new NeedsUpdateException(); } elseif ($this->config->getSystemValue('maintenance', false)) { if ($input->getArgument('command') !== '_completion') { - $output->writeln("Nextcloud is in maintenance mode - no apps have been loaded"); + $errOutput = $output->getErrorOutput(); + $errOutput->writeln('<comment>Nextcloud is in maintenance mode - no app have been loaded</comment>' . PHP_EOL); } } else { OC_App::loadApps(); |