diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-10-19 16:41:43 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-10-29 09:26:26 +0100 |
commit | e5a7e3124ae4054f5fdf99e5dd5cca373b4d83ad (patch) | |
tree | 92a97f6e0ac1838c746a0d237eb5923dad2c7f95 /core/command/maintenance | |
parent | ca2fd3007343dc4ba10d2b9d5e44ada0340d90cc (diff) | |
download | nextcloud-server-e5a7e3124ae4054f5fdf99e5dd5cca373b4d83ad.tar.gz nextcloud-server-e5a7e3124ae4054f5fdf99e5dd5cca373b4d83ad.zip |
Add a repair step that checks for group membership on shares
Diffstat (limited to 'core/command/maintenance')
-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); |