From 849c751e93afb231bcfba354f4eb90e12485448a Mon Sep 17 00:00:00 2001 From: Gavin D'souza Date: Mon, 16 Mar 2020 11:46:11 +0530 Subject: [PATCH] chore: dont create supervisord conf if doesnt exist via bench.config.supervisor.update_supervisord_conf --- bench/config/supervisor.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bench/config/supervisor.py b/bench/config/supervisor.py index a1168d87..40b8a92f 100644 --- a/bench/config/supervisor.py +++ b/bench/config/supervisor.py @@ -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"