From 64767c09a899d15c00f588797e2cd90ca77bdb6f Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Fri, 19 Jun 2020 18:39:13 +0200 Subject: [PATCH] Add system email to certification obtaining --- app/workers/certificates.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/workers/certificates.php b/app/workers/certificates.php index 6110046393..ba5c9f1a76 100644 --- a/app/workers/certificates.php +++ b/app/workers/certificates.php @@ -107,7 +107,8 @@ class CertificatesV1 $staging = (Config::getParam('env') === App::ENV_TYPE_PRODUCTION) ? '' : ' --dry-run'; - $response = shell_exec("certbot certonly --webroot --noninteractive --agree-tos{$staging} --email security@appwrite.io \ + $response = shell_exec("certbot certonly --webroot --noninteractive --agree-tos{$staging} \ + --email ".$request->getServer('_APP_SYSTEM_EMAIL_ADDRESS', 'security@localhost.test')." \ -w ".APP_STORAGE_CERTIFICATES." \ -d {$domain->get()}");