From 33ab9cdce6784d12d062af5450e6a8508f8e6f35 Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Wed, 8 Jun 2022 15:33:26 +0200 Subject: [PATCH] [FIX] runbot: open nginx file as text Continuation of previous fix 6902a7e24. --- runbot/models/runbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot/models/runbot.py b/runbot/models/runbot.py index 4365477a..23245784 100644 --- a/runbot/models/runbot.py +++ b/runbot/models/runbot.py @@ -157,7 +157,7 @@ class Runbot(models.AbstractModel): nginx_conf_path = os.path.join(nginx_dir, 'nginx.conf') content = '' if os.path.isfile(nginx_conf_path): - with open(nginx_conf_path, 'rb') as f: + with open(nginx_conf_path, 'r') as f: content = f.read() if content != nginx_config: _logger.info('reload nginx')