diff --git a/app/Commands/LetsEncryptAddCommand.php b/app/Commands/LetsEncryptAddCommand.php index b7249e3..70cd63f 100644 --- a/app/Commands/LetsEncryptAddCommand.php +++ b/app/Commands/LetsEncryptAddCommand.php @@ -21,7 +21,7 @@ class LetsEncryptAddCommand extends Command * * @var string */ - protected $signature = 'lets-encrypt:add {domain*}'; + protected $signature = 'lets-encrypt:add {email} {domain*} '; /** * The description of the command. @@ -46,7 +46,7 @@ class LetsEncryptAddCommand extends Command $domainFlags .= '-d '.$domain.' '; } - exec('certbot --nginx '.$domainFlags, $output); + exec('certbot --non-interactive --agree-tos -m '.$this->argument('email').' --nginx '.$domainFlags, $output); $this->line(implode("\n", $output)); } }