summaryrefslogtreecommitdiffstats
path: root/core/command
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-06-23 10:22:24 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-06-24 10:25:05 +0200
commit5ff536b45ad6f9c4490a9d949353c6aeea26d7f1 (patch)
tree0d78e539d4abfd534cb23773fea76a9328c43c47 /core/command
parentceb80ac123b26b033aac3f724da44a6f78c539ec (diff)
downloadnextcloud-server-5ff536b45ad6f9c4490a9d949353c6aeea26d7f1.tar.gz
nextcloud-server-5ff536b45ad6f9c4490a9d949353c6aeea26d7f1.zip
[upgrade] add verbosity check and show repair info & steps
Diffstat (limited to 'core/command')
-rw-r--r--core/command/upgrade.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/command/upgrade.php b/core/command/upgrade.php
index cf376148a00..c4f724d7e0a 100644
--- a/core/command/upgrade.php
+++ b/core/command/upgrade.php
@@ -168,6 +168,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);