mirror of
https://github.com/frappe/bench.git
synced 2025-01-08 00:04:38 +00:00
chore: simplify output of bench setup supervisor
when supervisor isn't installed
Seeing the whole stacktrace isn't too useful here Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
parent
7a89ccd53a
commit
9460a46ac3
@ -73,7 +73,9 @@ def setup_supervisor(user=None, yes=False, skip_redis=False, skip_supervisord=Fa
|
||||
generate_supervisor_config,
|
||||
)
|
||||
|
||||
which("supervisorctl", raise_err=True)
|
||||
if which("supervisorctl") is None:
|
||||
click.secho("Please install `supervisor` to proceed", fg="red")
|
||||
sys.exit(1)
|
||||
|
||||
if not skip_supervisord and "Permission denied" in get_cmd_output(
|
||||
"supervisorctl status"
|
||||
|
Loading…
Reference in New Issue
Block a user