diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-07-24 12:24:18 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2015-08-30 19:00:03 +0200 |
commit | 289e9130f35334a6f0cffcedee82da7d9f5082d0 (patch) | |
tree | 6330cd354add9962f3a1ec8c84aa0482b826df82 /core/register_command.php | |
parent | 045f8cc97101521cafd664faf7b8f24ea9e88451 (diff) | |
download | nextcloud-server-289e9130f35334a6f0cffcedee82da7d9f5082d0.tar.gz nextcloud-server-289e9130f35334a6f0cffcedee82da7d9f5082d0.zip |
make system root of key storage configurable
Diffstat (limited to 'core/register_command.php')
-rw-r--r-- | core/register_command.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/core/register_command.php b/core/register_command.php index 984e1b97f67..72c7b28e9ae 100644 --- a/core/register_command.php +++ b/core/register_command.php @@ -62,6 +62,23 @@ if (\OC::$server->getConfig()->getSystemValue('installed', false)) { $application->add(new OC\Core\Command\Log\Manage(\OC::$server->getConfig())); $application->add(new OC\Core\Command\Log\OwnCloud(\OC::$server->getConfig())); + $view = new \OC\Files\View(); + $util = new \OC\Encryption\Util( + $view, + \OC::$server->getUserManager(), + \OC::$server->getGroupManager(), + \OC::$server->getConfig() + ); + $application->add(new OC\Core\Command\Encryption\ChangeKeyStorageRoot( + $view, + \OC::$server->getUserManager(), + \OC::$server->getConfig(), + $util, + new \Symfony\Component\Console\Helper\QuestionHelper() + ) + ); + $application->add(new OC\Core\Command\Encryption\ShowKeyStorageRoot($util)); + $application->add(new OC\Core\Command\Maintenance\MimeTypesJS()); $application->add(new OC\Core\Command\Maintenance\Mode(\OC::$server->getConfig())); $application->add(new OC\Core\Command\Maintenance\Repair(new \OC\Repair(\OC\Repair::getRepairSteps()), \OC::$server->getConfig())); |