diff options
author | Ruben Homs <ruben@homs.codes> | 2018-10-29 17:36:16 +0300 |
---|---|---|
committer | Ruben Homs <ruben@homs.codes> | 2019-05-21 10:24:50 +0300 |
commit | 98047e8c1cd8c741f4a3d63b970f7e15fa76c128 (patch) | |
tree | f9058ccf218d466a04da8f64bb803ee92f4d556d /core/register_command.php | |
parent | 50dbdeea46b3891fad9793899ddcdcf20586f2d7 (diff) |
Stop decryption when maintenance mode is enabled, fixes #8311
Signed-off-by: Ruben Homs <ruben@homs.codes>
Diffstat (limited to 'core/register_command.php')
-rw-r--r-- | core/register_command.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/register_command.php b/core/register_command.php index 6bd1b1b18a9..8690e1d1cba 100644 --- a/core/register_command.php +++ b/core/register_command.php @@ -99,8 +99,8 @@ if (\OC::$server->getConfig()->getSystemValue('installed', false)) { $application->add(new OC\Core\Command\Encryption\Disable(\OC::$server->getConfig())); $application->add(new OC\Core\Command\Encryption\Enable(\OC::$server->getConfig(), \OC::$server->getEncryptionManager())); - $application->add(new OC\Core\Command\Encryption\ListModules(\OC::$server->getEncryptionManager())); - $application->add(new OC\Core\Command\Encryption\SetDefaultModule(\OC::$server->getEncryptionManager())); + $application->add(new OC\Core\Command\Encryption\ListModules(\OC::$server->getEncryptionManager(), \OC::$server->getConfig())); + $application->add(new OC\Core\Command\Encryption\SetDefaultModule(\OC::$server->getEncryptionManager(), \OC::$server->getConfig())); $application->add(new OC\Core\Command\Encryption\Status(\OC::$server->getEncryptionManager())); $application->add(new OC\Core\Command\Encryption\EncryptAll(\OC::$server->getEncryptionManager(), \OC::$server->getAppManager(), \OC::$server->getConfig(), new \Symfony\Component\Console\Helper\QuestionHelper())); $application->add(new OC\Core\Command\Encryption\DecryptAll( |