From b2c2d6186747e253ed629bcf994b0d0c781aeccb Mon Sep 17 00:00:00 2001 From: David Duque Date: Mon, 20 Apr 2020 18:23:45 +0100 Subject: [PATCH] Oops --- 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 62be27fc..be72aba2 100644 --- a/management/web_update.py +++ b/management/web_update.py @@ -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.