From c401625a01c0e92d761cb3c5a89f73f5a2de559d Mon Sep 17 00:00:00 2001 From: David Duque Date: Mon, 20 Apr 2020 19:20:26 +0100 Subject: [PATCH] Don't overwrite --- management/web_update.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/management/web_update.py b/management/web_update.py index 0e77e267..6c7d0ab9 100644 --- a/management/web_update.py +++ b/management/web_update.py @@ -98,9 +98,8 @@ def do_web_update(env): if os.path.exists(nginx_conf_custom): with open(nginx_conf_custom, "r") as f: local_conf = f.read() - - if domain not in has_root_proxy_or_redirect: - local_conf = make_domain_config(domain, [template0, template4], ssl_certificates, env) + elif domain not in has_root_proxy_or_redirect: + local_conf = make_domain_config(domain, [template0, template3], ssl_certificates, env) else: local_conf = make_domain_config(domain, [template0], ssl_certificates, env) nginx_conf += local_conf