1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-25 07:47:05 +00:00

Use get_web_root instead of raw indexing

This commit is contained in:
David Duque 2020-04-20 18:54:27 +01:00
parent 8c5ff2b523
commit 3396bdbb22
No known key found for this signature in database
GPG Key ID: 2F327738A3C0AE3A

View File

@ -94,7 +94,7 @@ def do_web_update(env):
if domain in web_domains_not_redirect: if domain in web_domains_not_redirect:
# This is a regular domain. # This is a regular domain.
local_conf = "" 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): if os.path.exists(nginx_conf_custom):
with open(nginx_conf_custom, "r") as f: with open(nginx_conf_custom, "r") as f:
local_conf = f.read() local_conf = f.read()