summaryrefslogtreecommitdiffstats
path: root/core/Command
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-06-08 10:12:47 +0200
committerVincent Petry <pvince81@owncloud.com>2016-06-08 10:12:47 +0200
commit9b6125e49bc60c410c86aa3f08ce12b8cf887d2c (patch)
tree67d6be99922d2a4f5d1fe926de7695bbddd35d64 /core/Command
parentb7935dcebd97a0a3f08909548a38e8596f8eb4d9 (diff)
parent67c9e598aed8479ff1e46e55563e8582e2299705 (diff)
downloadnextcloud-server-9b6125e49bc60c410c86aa3f08ce12b8cf887d2c.tar.gz
nextcloud-server-9b6125e49bc60c410c86aa3f08ce12b8cf887d2c.zip
Merge pull request #24992 from owncloud/fix_decrypt_message
Fix Decrypt message via occ
Diffstat (limited to 'core/Command')
-rw-r--r--core/Command/Encryption/DecryptAll.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/core/Command/Encryption/DecryptAll.php b/core/Command/Encryption/DecryptAll.php
index e8aec064f25..d060918a506 100644
--- a/core/Command/Encryption/DecryptAll.php
+++ b/core/Command/Encryption/DecryptAll.php
@@ -128,8 +128,16 @@ class DecryptAll extends Command {
return;
}
+ $uid = $input->getArgument('user');
+ //FIXME WHEN https://github.com/owncloud/core/issues/24994 is fixed
+ if ($uid === null) {
+ $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!');
@@ -141,6 +149,7 @@ class DecryptAll extends Command {
$result = $this->decryptAll->decryptAll($input, $output, $user);
if ($result === false) {
$output->writeln(' aborted.');
+ $output->writeln('Server side encryption remains enabled');
$this->config->setAppValue('core', 'encryption_enabled', 'yes');
}
$this->resetSingleUserAndTrashbin();