Skip to content

Commit

Permalink
fix: Try setting supervisord conditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza committed Mar 17, 2022
1 parent d89f19e commit 7a4ade9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bench/commands/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,12 @@ def reload_nginx():
@click.option("--yes", help="Yes to regeneration of supervisor config", is_flag=True, default=False)
@click.option("--skip-redis", help="Skip redis configuration", is_flag=True, default=False)
def setup_supervisor(user=None, yes=False, skip_redis=False):
from bench.utils import get_cmd_output
from bench.config.supervisor import update_supervisord_config, generate_supervisor_config

update_supervisord_config(user=user, yes=yes)
if "Permission denied" in get_cmd_output("supervisorctl status"):
update_supervisord_config(user=user, yes=yes)

generate_supervisor_config(bench_path=".", user=user, yes=yes, skip_redis=skip_redis)


Expand Down

0 comments on commit 7a4ade9

Please sign in to comment.