summaryrefslogtreecommitdiffstats
path: root/core/register_command.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-07-24 12:24:18 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2015-08-30 19:00:03 +0200
commit289e9130f35334a6f0cffcedee82da7d9f5082d0 (patch)
tree6330cd354add9962f3a1ec8c84aa0482b826df82 /core/register_command.php
parent045f8cc97101521cafd664faf7b8f24ea9e88451 (diff)
downloadnextcloud-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.php17
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()));