|
@ -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); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|