From 3396bdbb22ee0f52cbfd602683a3cdbefd72eb63 Mon Sep 17 00:00:00 2001 From: David Duque Date: Mon, 20 Apr 2020 18:54:27 +0100 Subject: [PATCH] Use get_web_root instead of raw indexing --- 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 36b8e03d..ac4f75b3 100644 --- a/management/web_update.py +++ b/management/web_update.py @@ -94,7 +94,7 @@ def do_web_update(env): if domain in web_domains_not_redirect: # This is a regular domain. local_conf = "" - nginx_conf_custom = os.path.join(env["STORAGE_ROOT"], "www", safe_domain_name(domain), ".nginx.conf") + nginx_conf_custom = os.path.join(get_web_root(domain), ".nginx.conf") if os.path.exists(nginx_conf_custom): with open(nginx_conf_custom, "r") as f: local_conf = f.read()