summaryrefslogtreecommitdiffstats
path: root/core/Command/Encryption
diff options
context:
space:
mode:
authordavitol <dtoledo@solidgear.es>2016-06-06 15:28:49 +0200
committerdavitol <dtoledo@solidgear.es>2016-06-06 15:28:49 +0200
commiteaeb5d606dee28f647f2f2b34ec49c9cb6c091ec (patch)
treeaee7aba6bbc36b4404353de5448113fe3a59388b /core/Command/Encryption
parent7d31ae9909d5edb2fab42ff06f725682d4e9c430 (diff)
downloadnextcloud-server-eaeb5d606dee28f647f2f2b34ec49c9cb6c091ec.tar.gz
nextcloud-server-eaeb5d606dee28f647f2f2b34ec49c9cb6c091ec.zip
Fix Decrypt message via occ
Diffstat (limited to 'core/Command/Encryption')
-rw-r--r--core/Command/Encryption/DecryptAll.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/core/Command/Encryption/DecryptAll.php b/core/Command/Encryption/DecryptAll.php
index 8d7d26f3d23..26dbe79b5cc 100644
--- a/core/Command/Encryption/DecryptAll.php
+++ b/core/Command/Encryption/DecryptAll.php
@@ -118,6 +118,8 @@ class DecryptAll extends Command {
protected function execute(InputInterface $input, OutputInterface $output) {
try {
+
+
if ($this->encryptionManager->isEnabled() === true) {
$output->write('Disable server side encryption... ');
$this->config->setAppValue('core', 'encryption_enabled', 'no');
@@ -127,8 +129,15 @@ class DecryptAll extends Command {
return;
}
+ $uid = $input->getArgument('user');
+ if (empty($uid)) {
+ $message = 'your ownCloud';
+ } else {
+ $message = "$uid's account";
+ }
+
$output->writeln("\n");
- $output->writeln('You are about to start to decrypt all files stored in your ownCloud.');
+ $output->writeln("You are about to start to decrypt all files stored in $message.");
$output->writeln('It will depend on the encryption module and your setup if this is possible.');
$output->writeln('Depending on the number and size of your files this can take some time');
$output->writeln('Please make sure that no user access his files during this process!');
@@ -140,6 +149,7 @@ class DecryptAll extends Command {
$result = $this->decryptAll->decryptAll($input, $output, $user);
if ($result === false) {
$output->writeln(' aborted.');
+ $output->write('Enable server side encryption... ');
$this->config->setAppValue('core', 'encryption_enabled', 'yes');
}
$this->resetSingleUserAndTrashbin();