This commit is contained in:
David Duque 2020-04-20 18:23:45 +01:00
parent 72070ee7bd
commit b2c2d61867
No known key found for this signature in database
GPG Key ID: 2F327738A3C0AE3A
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ def do_web_update(env):
local_conf = make_domain_config(domain, [template0], ssl_certificates, env)
nginx_conf += local_conf
with open(nginx_conf, "r+") as f:
with open(nginx_conf, "w+") as f:
f.write(local_conf)
else:
# Add default 'www.' redirect.