diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-07-01 08:56:06 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-07-01 08:56:06 +0200 |
commit | b5c9196ffcf8f5300d96e7d2bdd78f2695f6fd7a (patch) | |
tree | 77757451dd9014c41c7cfb3339336569ccf7e677 /core/command/upgrade.php | |
parent | 4e44cc49d905171374768a29f5af826092915b8c (diff) | |
parent | 17ff77c4e7982f40aaaa99e2c8fe7662e85d79a5 (diff) | |
download | nextcloud-server-b5c9196ffcf8f5300d96e7d2bdd78f2695f6fd7a.tar.gz nextcloud-server-b5c9196ffcf8f5300d96e7d2bdd78f2695f6fd7a.zip |
Merge pull request #17088 from owncloud/add-verbosity-to-upgrade
[upgrade] add verbosity check and show repair info & steps
Diffstat (limited to 'core/command/upgrade.php')
-rw-r--r-- | core/command/upgrade.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/command/upgrade.php b/core/command/upgrade.php index 14478f88b05..44e0b66c17c 100644 --- a/core/command/upgrade.php +++ b/core/command/upgrade.php @@ -178,6 +178,15 @@ class Upgrade extends Command { $output->writeln("<error>$message</error>"); }); + if(OutputInterface::VERBOSITY_NORMAL < $output->getVerbosity()) { + $updater->listen('\OC\Updater', 'repairInfo', function ($message) use($output) { + $output->writeln('<info>Repair info: ' . $message . '</info>'); + }); + $updater->listen('\OC\Updater', 'repairStep', function ($message) use($output) { + $output->writeln('<info>Repair step: ' . $message . '</info>'); + }); + } + $success = $updater->upgrade(); $this->postUpgradeCheck($input, $output); |