summaryrefslogtreecommitdiffstats
path: root/core/Command
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2023-11-07 08:39:42 +0100
committerGitHub <noreply@github.com>2023-11-07 08:39:42 +0100
commitbcc4d7d042e8e9e7990fda20e64e5b1c9f1295e2 (patch)
treef41257ab95945c908c05a8fc4e13bff81335c3d1 /core/Command
parenta77af05a3154a99e4d83f953f5e6cbd466521e3c (diff)
parent6f39d82031202a2a8d1fb81ea448a2ffdc52cc29 (diff)
downloadnextcloud-server-bcc4d7d042e8e9e7990fda20e64e5b1c9f1295e2.tar.gz
nextcloud-server-bcc4d7d042e8e9e7990fda20e64e5b1c9f1295e2.zip
Merge pull request #41214 from nextcloud/bugfix/noid/make-install-verbose
fix(install): Make installing more verbose
Diffstat (limited to 'core/Command')
-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 643bb54c0d6..f5d53c96234 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;
@@ -98,8 +100,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;