From 502a4d2128e17b42198b7295b3346a48f4b4ab87 Mon Sep 17 00:00:00 2001 From: David Duque Date: Mon, 20 Apr 2020 19:38:50 +0100 Subject: [PATCH] Uhhhh, yeah --- management/web_update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/web_update.py b/management/web_update.py index 25c4ed61..921aadcd 100644 --- a/management/web_update.py +++ b/management/web_update.py @@ -83,7 +83,7 @@ def do_web_update(env): # Add the PRIMARY_HOST configuration first so it becomes nginx's default server. nginx_conf += make_domain_config(env['PRIMARY_HOSTNAME'], [template0, template1, template2], ssl_certificates, env) - default_conf_file = os.path.join(get_web_root(env['PRIMARY_HOSTNAME']), ".nginx.conf") + default_conf_file = os.path.join(get_web_root(env['PRIMARY_HOSTNAME'], env), ".nginx.conf") if not os.path.exists(default_conf_file): with open(default_conf_file, "w") as f: f.write(nginx_conf)