This is an automated email from the ASF dual-hosted git repository.

lfrolov pushed a commit to branch DLAB-1594-2
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/DLAB-1594-2 by this push:
     new d281ad7  [DLAB-1594]: added check if email is defined
d281ad7 is described below

commit d281ad7ea1b1a1553cd5022d8d768ae1bf297864
Author: leonidfrolov <[email protected]>
AuthorDate: Mon Aug 3 19:53:27 2020 +0300

    [DLAB-1594]: added check if email is defined
---
 infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py 
b/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py
index eb0445a..c4e337a 100644
--- a/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py
+++ b/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py
@@ -238,7 +238,10 @@ def configure_ssl_certs(hostname, custom_ssl_cert):
                 sudo('systemctl enable step-cert-manager.service')
             elif os.environ['conf_letsencrypt_enabled'] == 'true':
                 install_certbot(os.environ['conf_os_family'])
-                run_certbot(os.environ['conf_letsencrypt_domain_name'], 
os.environ['conf_letsencrypt_email'])
+                if 'conf_letsencrypt_email' in os.environ:
+                    run_certbot(os.environ['conf_letsencrypt_domain_name'], 
os.environ['conf_letsencrypt_email'])
+                else:
+                    run_certbot(os.environ['conf_letsencrypt_domain_name'])
                 configure_nginx_LE(os.environ['conf_letsencrypt_domain_name'])
             else:
                 sudo('openssl req -x509 -nodes -days 3650 -newkey rsa:2048 
-keyout /etc/ssl/certs/dlab.key \


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to