2
0
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:
Akhil Narang 2024-01-15 13:34:58 +05:30
parent 7a89ccd53a
commit 9460a46ac3
No known key found for this signature in database
GPG Key ID: 9DCC61E211BF645F

View File

@ -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"