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 72bd7f7  [DLAB-1594]: changed how lines are replaced
72bd7f7 is described below

commit 72bd7f749cfd79f377cb760642d65ade504f751c
Author: leonidfrolov <[email protected]>
AuthorDate: Tue Aug 4 15:57:45 2020 +0300

    [DLAB-1594]: changed how lines are replaced
---
 infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py 
b/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py
index c5d9322..a5994ba 100644
--- a/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py
+++ b/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py
@@ -172,9 +172,9 @@ def configure_nginx_LE(domain_name):
         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'
         nginx_config_path = '/etc/nginx/conf.d/nginx_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(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)
         sudo('systemctl restart nginx')
     except Exception as err:


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

Reply via email to