2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-23 20:49:01 +00:00

chore: dont create supervisord conf if doesnt exist via

bench.config.supervisor.update_supervisord_conf
This commit is contained in:
Gavin D'souza 2020-03-16 11:46:11 +05:30
parent c1507c2848
commit 849c751e93

View File

@ -66,9 +66,12 @@ def update_supervisord_conf(user):
"""From bench v5.0, we're moving to supervisor running as user"""
from bench.config.production_setup import service
supervisord_conf = get_supervisord_conf() or "supervisord.conf"
supervisord_conf = get_supervisord_conf()
section = "unix_http_server"
if not supervisord_conf:
return
config = configparser.ConfigParser()
config.read(supervisord_conf)
config[section]["chmod"] = "0760"