diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-06-23 10:22:24 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-07-07 10:16:49 +0200 |
commit | fb85fc619d6804647fe31ddc0cde1bda51f42e48 (patch) | |
tree | ea356a9e53379e63d4847e6da7ba2fac7c825abe /core | |
parent | 06ec916b1128b9a1ec79751bdd78cc4a8c64ace8 (diff) | |
download | nextcloud-server-fb85fc619d6804647fe31ddc0cde1bda51f42e48.tar.gz nextcloud-server-fb85fc619d6804647fe31ddc0cde1bda51f42e48.zip |
[upgrade] add verbosity check and show repair info & steps
Diffstat (limited to 'core')
-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 ac0d72a8940..32691b8aa5d 100644 --- a/core/command/upgrade.php +++ b/core/command/upgrade.php @@ -169,6 +169,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); |