From aa8090eebb12c967b2e2d6d2e87eefeb982b9527 Mon Sep 17 00:00:00 2001 From: Izalia Mae Date: Thu, 8 Dec 2022 03:31:47 -0500 Subject: [PATCH] don't prompt for ignored settings in docker instances --- relay/manage.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/relay/manage.py b/relay/manage.py index 1bf2c03..0d7decc 100644 --- a/relay/manage.py +++ b/relay/manage.py @@ -43,11 +43,12 @@ def cli_setup(): click.echo('The domain must not be example.com') - app.config.listen = click.prompt('Which address should the relay listen on?', default=app.config.listen) + if not app.config.is_docker: + app.config.listen = click.prompt('Which address should the relay listen on?', default=app.config.listen) - while True: - app.config.port = click.prompt('What TCP port should the relay listen on?', default=app.config.port, type=int) - break + while True: + app.config.port = click.prompt('What TCP port should the relay listen on?', default=app.config.port, type=int) + break app.config.save()