summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-10-31 12:06:09 +0100
committerJoas Schilling <coding@schilljs.com>2023-11-03 15:46:06 +0100
commitb864f3909fe382ee8ebf8dadfecd7f2386e74e94 (patch)
tree9491d37cbbbf4a8b9478898e4b27154af281e9d8 /core
parent0e44a73b13299fb488de325914bb4472b118de01 (diff)
downloadnextcloud-server-b864f3909fe382ee8ebf8dadfecd7f2386e74e94.tar.gz
nextcloud-server-b864f3909fe382ee8ebf8dadfecd7f2386e74e94.zip
fix(install): Make installing more verbose
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core')
-rw-r--r--core/Command/Maintenance/Install.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/core/Command/Maintenance/Install.php b/core/Command/Maintenance/Install.php
index efb99e51431..5eac7010e3b 100644
--- a/core/Command/Maintenance/Install.php
+++ b/core/Command/Maintenance/Install.php
@@ -32,7 +32,9 @@ namespace OC\Core\Command\Maintenance;
use bantu\IniGetWrapper\IniGetWrapper;
use InvalidArgumentException;
+use OC\Console\TimestampFormatter;
use OC\Installer;
+use OC\Migration\ConsoleOutput;
use OC\Setup;
use OC\SystemConfig;
use OCP\Defaults;
@@ -100,8 +102,17 @@ class Install extends Command {
// validate user input
$options = $this->validateInput($input, $output, array_keys($sysInfo['databases']));
+ if ($output->isVerbose()) {
+ // Prepend each line with a little timestamp
+ $timestampFormatter = new TimestampFormatter(null, $output->getFormatter());
+ $output->setFormatter($timestampFormatter);
+ $migrationOutput = new ConsoleOutput($output);
+ } else {
+ $migrationOutput = null;
+ }
+
// perform installation
- $errors = $setupHelper->install($options);
+ $errors = $setupHelper->install($options, $migrationOutput);
if (count($errors) > 0) {
$this->printErrors($output, $errors);
return 1;