diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-29 10:43:50 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-29 10:43:50 +0100 |
commit | f000edb63619d31745bee0fed460fcf84256ab3d (patch) | |
tree | a3dc745cb35025e412e1cf3e2a9a3c2e4c8526e2 /core | |
parent | 3dade2db777030bf3afb999ddec272de62a50a37 (diff) | |
parent | 6043f0afdb88caf667cc7ace2c5615735de71ac3 (diff) | |
download | nextcloud-server-f000edb63619d31745bee0fed460fcf84256ab3d.tar.gz nextcloud-server-f000edb63619d31745bee0fed460fcf84256ab3d.zip |
Merge pull request #19871 from owncloud/issue-19583-invalid-shares
Issue 19583 invalid shares
Diffstat (limited to 'core')
-rw-r--r-- | core/command/maintenance/repair.php | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/core/command/maintenance/repair.php b/core/command/maintenance/repair.php index 5df362f8111..f7c0cc46048 100644 --- a/core/command/maintenance/repair.php +++ b/core/command/maintenance/repair.php @@ -26,6 +26,7 @@ namespace OC\Core\Command\Maintenance; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; +use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; class Repair extends Command { @@ -49,10 +50,24 @@ class Repair extends Command { protected function configure() { $this ->setName('maintenance:repair') - ->setDescription('repair this installation'); + ->setDescription('repair this installation') + ->addOption( + 'include-expensive', + null, + InputOption::VALUE_NONE, + 'Use this option when you want to include resource and load expensive tasks' + ) + ; } protected function execute(InputInterface $input, OutputInterface $output) { + $includeExpensive = $input->getOption('include-expensive'); + if ($includeExpensive) { + foreach ($this->repair->getExpensiveRepairSteps() as $step) { + $this->repair->addStep($step); + } + } + $maintenanceMode = $this->config->getSystemValue('maintenance', false); $this->config->setSystemValue('maintenance', true); |