This is an automated email from the ASF dual-hosted git repository. lfrolov pushed a commit to branch DLAB-1594 in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit f6073c236f00a3241f93ab292bd64c2d07bf73aa Author: leonidfrolov <[email protected]> AuthorDate: Fri Mar 13 18:04:01 2020 +0200 [DLAB-1594]: changed variable name --- .../scripts/LetsEncrypt/lets_encrypt.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/infrastructure-provisioning/scripts/LetsEncrypt/lets_encrypt.py b/infrastructure-provisioning/scripts/LetsEncrypt/lets_encrypt.py index 7586fcd..75a1b27 100644 --- a/infrastructure-provisioning/scripts/LetsEncrypt/lets_encrypt.py +++ b/infrastructure-provisioning/scripts/LetsEncrypt/lets_encrypt.py @@ -94,12 +94,12 @@ def configure_nginx(domain_name, node_type): certbot_service = 'ExecStart = /usr/bin/certbot -q renew --pre-hook "service nginx stop" --post-hook "service nginx start"' certbot_service_path = '/lib/systemd/system/certbot.service' if node_type == 'ssn_node': - file_path = '/etc/nginx/conf.d/nginx_proxy.conf' + nginx_config_path = '/etc/nginx/conf.d/nginx_proxy.conf' else: - file_path = '/etc/nginx/conf.d/proxy.conf' - find_replace_line(file_path,'server_name' ,server_name_line) - find_replace_line(file_path,'ssl_certificate' ,cert_path_line) - find_replace_line(file_path,'ssl_certificate_key' ,cert_key_line) + nginx_config_path = '/etc/nginx/conf.d/proxy.conf' + find_replace_line(nginx_config_path,'server_name' ,server_name_line) + find_replace_line(nginx_config_path,'ssl_certificate' ,cert_path_line) + find_replace_line(nginx_config_path,'ssl_certificate_key' ,cert_key_line) find_replace_line(certbot_service_path, 'ExecStart', certbot_service) local('sudo systemctl restart nginx') except Exception as err: --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
