From a56fca81f169ada536626659dee90d88c9d7553b Mon Sep 17 00:00:00 2001 From: Greg Price Date: Wed, 15 Nov 2017 16:04:54 -0800 Subject: [PATCH] setup-certbot: Require hostname and email. The script already won't work without them; so if the user gets the invocation wrong, give a halfway-reasonable error rather than just crash into the ground. --- scripts/setup/setup-certbot | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/setup/setup-certbot b/scripts/setup/setup-certbot index 6b25945998..48aa2ba9a2 100755 --- a/scripts/setup/setup-certbot +++ b/scripts/setup/setup-certbot @@ -52,6 +52,10 @@ if [ -n "$show_help" ]; then usage fi +if [ -z "$DOMAIN" -o -z "$EMAIL" ]; then + usage +fi + case "$method" in standalone) method_args=(--standalone)