diff options
author | Joas Schilling <coding@schilljs.com> | 2023-10-31 12:06:09 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-11-03 15:44:46 +0100 |
commit | 6f39d82031202a2a8d1fb81ea448a2ffdc52cc29 (patch) | |
tree | 26f76451f1462ea5669f1d53e9cd0ebf7d79e7f2 /core/Command/Maintenance | |
parent | 50de7553b582744c7376ca5c7bcff0ba47c1e6b3 (diff) | |
download | nextcloud-server-6f39d82031202a2a8d1fb81ea448a2ffdc52cc29.tar.gz nextcloud-server-6f39d82031202a2a8d1fb81ea448a2ffdc52cc29.zip |
fix(install): Make installing more verbose
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/Command/Maintenance')
-rw-r--r-- | core/Command/Maintenance/Install.php | 13 |
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; |