From 10bac2035d8975f8e109644a1b72b264052dc263 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn?= Date: Sun, 9 Aug 2020 19:38:27 +0200 Subject: [PATCH] adding smaller bugfixes, change letsencrpty --- app/Commands/LetsEncryptAddCommand.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app/Commands/LetsEncryptAddCommand.php b/app/Commands/LetsEncryptAddCommand.php index 9870baf..b7249e3 100644 --- a/app/Commands/LetsEncryptAddCommand.php +++ b/app/Commands/LetsEncryptAddCommand.php @@ -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)); } }