Browse Source

adding smaller bugfixes, change letsencrpty

release/0.1
Björn 4 years ago
parent
commit
10bac2035d
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      app/Commands/LetsEncryptAddCommand.php

+ 10
- 2
app/Commands/LetsEncryptAddCommand.php View File

@ -12,7 +12,7 @@ use LaravelZero\Framework\Commands\Command;
* @author Björn Hase, Tentakelfabrik * @author Björn Hase, Tentakelfabrik
* @license http://opensource.org/licenses/MIT The MIT License * @license http://opensource.org/licenses/MIT The MIT License
* @link https://gitea.tentakelfabrik.de/Tentakelfabrik/mcp * @link https://gitea.tentakelfabrik.de/Tentakelfabrik/mcp
*
*
*/ */
class LetsEncryptAddCommand extends Command class LetsEncryptAddCommand extends Command
{ {
@ -39,6 +39,14 @@ class LetsEncryptAddCommand extends Command
public function handle() public function handle()
{ {
$domains = $this->argument('domain'); $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));
} }
} }

Loading…
Cancel
Save