mirror of
https://github.com/frappe/bench.git
synced 2024-11-12 00:06:36 +00:00
fix: add section in conf if doesnt exist
This commit is contained in:
parent
78dbdcb3f1
commit
3e99fbc46b
@ -74,6 +74,10 @@ def update_supervisord_conf(user):
|
||||
|
||||
config = configparser.ConfigParser()
|
||||
config.read(supervisord_conf)
|
||||
|
||||
if section not in config.sections():
|
||||
config.add_section(section)
|
||||
|
||||
config[section]["chmod"] = "0760"
|
||||
config[section]["chown"] = "{user}:{user}".format(user=user)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user