From f16ca9da35e1faeb530777f892920fc26705139d Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Wed, 26 Jun 2019 14:43:12 +1200 Subject: [PATCH] dockersetup: show a warning if no email host specified If no email host has been specified that will prevent certain things from working, so warn the user if they haven't specified one. Signed-off-by: Paul Eggleton --- dockersetup.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dockersetup.py b/dockersetup.py index 55d3cb8..f9532d0 100755 --- a/dockersetup.py +++ b/dockersetup.py @@ -546,6 +546,13 @@ Note that this script does have interactive prompts, so be prepared to provide information as needed. """) +if not updatemode and not email_host: + print(""" WARNING: no email host has been specified - functions that require email + (such as and new account registraion, password reset and error reports will + not work without it. If you wish to correct this, press Ctrl+C now and then + re-run specifying the email host with the --email-host option. +""") + if reinstmode: print(""" WARNING: continuing will wipe out any existing data in the database and set up the application from scratch! Press Ctrl+C now if this is not what you