You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by lf...@apache.org on 2020/08/03 16:53:42 UTC
[incubator-dlab] branch DLAB-1594-2 updated: [DLAB-1594]: added
check if email is defined
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 <fr...@gmail.com>
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: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org