Browse Source

adding

release/0.1
Björn 4 years ago
parent
commit
81aa6937e0
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      app/Commands/LetsEncryptRemoveCommand.php

+ 6
- 2
app/Commands/LetsEncryptRemoveCommand.php View File

@ -51,11 +51,15 @@ class LetsEncryptRemoveCommand extends Command
$errors = 0; $errors = 0;
foreach($directories as $directory) {
foreach($directories as $key => $directory) {
if (!file_exists($directory)) { if (!file_exists($directory)) {
$errors++; $errors++;
} else { } else {
exec('rm -rf '.$directory.' 2&>1', $output);
if ($key === 'renewal') {
exec('rm '.$directory.'.conf 2>&1', $output);
} else {
exec('rm -rf '.$directory.' 2>&1', $output);
}
} }
} }


Loading…
Cancel
Save