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.
This commit is contained in:
Greg Price 2017-11-15 16:04:54 -08:00 committed by Tim Abbott
parent df8548aaf1
commit a56fca81f1
1 changed files with 4 additions and 0 deletions

View File

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