mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[FIX] runbot: open nginx file as text
Continuation of previous fix 6902a7e24
.
This commit is contained in:
parent
6902a7e242
commit
33ab9cdce6
@ -157,7 +157,7 @@ class Runbot(models.AbstractModel):
|
|||||||
nginx_conf_path = os.path.join(nginx_dir, 'nginx.conf')
|
nginx_conf_path = os.path.join(nginx_dir, 'nginx.conf')
|
||||||
content = ''
|
content = ''
|
||||||
if os.path.isfile(nginx_conf_path):
|
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()
|
content = f.read()
|
||||||
if content != nginx_config:
|
if content != nginx_config:
|
||||||
_logger.info('reload nginx')
|
_logger.info('reload nginx')
|
||||||
|
Loading…
Reference in New Issue
Block a user