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 72ea0bb [DLAB-1594]: changed how lines are replaced
72ea0bb is described below
commit 72ea0bb96e3079dcd2a43e35707924bb2698d5a9
Author: leonidfrolov <[email protected]>
AuthorDate: Tue Aug 4 16:15:03 2020 +0300
[DLAB-1594]: changed how lines are replaced
---
infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py
b/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py
index a5994ba..6fd178d 100644
--- a/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py
+++ b/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py
@@ -172,8 +172,8 @@ 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,' 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')
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]