From 81aa6937e087c278c982eddb3e736d1353d2aff1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn?= Date: Sun, 9 Aug 2020 23:14:33 +0200 Subject: [PATCH] adding --- app/Commands/LetsEncryptRemoveCommand.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/Commands/LetsEncryptRemoveCommand.php b/app/Commands/LetsEncryptRemoveCommand.php index 1347a83..7af1bb1 100644 --- a/app/Commands/LetsEncryptRemoveCommand.php +++ b/app/Commands/LetsEncryptRemoveCommand.php @@ -51,11 +51,15 @@ class LetsEncryptRemoveCommand extends Command $errors = 0; - foreach($directories as $directory) { + foreach($directories as $key => $directory) { if (!file_exists($directory)) { $errors++; } 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); + } } }