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