Browse Source

adding

release/0.1
Björn 4 years ago
parent
commit
0f11afe162
1 changed files with 7 additions and 4 deletions
  1. +7
    -4
      app/Commands/LetsEncryptRemoveCommand.php

+ 7
- 4
app/Commands/LetsEncryptRemoveCommand.php View File

@ -6,8 +6,11 @@ use Illuminate\Console\Scheduling\Schedule;
use LaravelZero\Framework\Commands\Command; use LaravelZero\Framework\Commands\Command;
/** /**
* Remove LetsEncrypt Cerficates
* *
*
* @author Björn Hase, Tentakelfabrik
* @license http://opensource.org/licenses/MIT The MIT License
* @link https://gitea.tentakelfabrik.de/Tentakelfabrik/mcp
* *
*/ */
class LetsEncryptRemoveCommand extends Command class LetsEncryptRemoveCommand extends Command
@ -58,15 +61,15 @@ class LetsEncryptRemoveCommand extends Command
} }
if ($errors === (count($diretories) - 1)) { if ($errors === (count($diretories) - 1)) {
$this->error('Error! Certificate for '.$domain.' ...not found!');
$this->error('Error! Certificate for '.$domain.'...not found!');
} }
if ($erros > 0 && $errors < (count($diretories) - 1)) { if ($erros > 0 && $errors < (count($diretories) - 1)) {
$this->error('Trouble! Certificate for '.$domain.' ...delete! Some files were not found!');
$this->error('Trouble! Certificate for '.$domain.'...delete! Some files were not found!');
} }
if ($errors === 0) { if ($errors === 0) {
$this->info('Success! Certificate for '.$domain.' ...deleted!');
$this->info('Success! Certificate for '.$domain.'...deleted!');
} }
} }
} }


Loading…
Cancel
Save