diff options
Diffstat (limited to 'core/Command/Encryption/DecryptAll.php')
-rw-r--r-- | core/Command/Encryption/DecryptAll.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/Command/Encryption/DecryptAll.php b/core/Command/Encryption/DecryptAll.php index 9931a279ff4..253223f9529 100644 --- a/core/Command/Encryption/DecryptAll.php +++ b/core/Command/Encryption/DecryptAll.php @@ -123,6 +123,14 @@ class DecryptAll extends Command { } protected function execute(InputInterface $input, OutputInterface $output) { + if ( !$input->isInteractive() ) { + $output->writeln('Invalid TTY.'); + $output->writeln('If you are trying to execute the command in a Docker '); + $output->writeln("container, do not forget to execute 'docker exec' with"); + $output->writeln("the '-i' and '-t' options."); + $output->writeln(''); + return; + } try { if ($this->encryptionManager->isEnabled() === true) { |