|
|
@ -12,7 +12,7 @@ use LaravelZero\Framework\Commands\Command; |
|
|
|
* @author Björn Hase, Tentakelfabrik |
|
|
|
* @license http://opensource.org/licenses/MIT The MIT License |
|
|
|
* @link https://gitea.tentakelfabrik.de/Tentakelfabrik/mcp |
|
|
|
* |
|
|
|
* |
|
|
|
*/ |
|
|
|
class LetsEncryptAddCommand extends Command |
|
|
|
{ |
|
|
@ -39,6 +39,14 @@ class LetsEncryptAddCommand extends Command |
|
|
|
public function handle() |
|
|
|
{ |
|
|
|
$domains = $this->argument('domain'); |
|
|
|
exec('certbot --nginx '.implode('-d ', $domains), $output); |
|
|
|
|
|
|
|
$domainFlags = ''; |
|
|
|
|
|
|
|
foreach($domains as $domain) { |
|
|
|
$domainFlags .= '-d '.$domain.' '; |
|
|
|
} |
|
|
|
|
|
|
|
exec('certbot --nginx '.$domainFlags, $output); |
|
|
|
$this->line(implode("\n", $output)); |
|
|
|
} |
|
|
|
} |