[FIX] runbot: open nginx file as text

Continuation of previous fix 6902a7e24.
This commit is contained in:
Christophe Monniez 2022-06-08 15:33:26 +02:00
parent 6902a7e242
commit 33ab9cdce6

View File

@ -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')