progress towards making email an optional parameter
This commit is contained in:
parent
2635542d41
commit
60f93dfe48
2 changed files with 7 additions and 5 deletions
|
@ -1,5 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
# TODO: Make email an optional parameter
|
||||
# Check what happens when both -m and registration without email are supplied
|
||||
|
||||
# Initial check for certificates
|
||||
certbot certonly --manual --preferred-challenges dns --manual-auth-hook \
|
||||
/scripts/auth.sh --manual-cleanup-hook /scripts/cleanup.sh \
|
||||
|
|
|
@ -11,16 +11,15 @@ if [ -z "$DUCKDNS_DOMAIN" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$LETSENCRYPT_EMAIL" ]; then
|
||||
echo ERROR: Variable LETSENCRYPT_EMAIL is unset
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$LETSENCRYPT_WILDCARD" ]; then
|
||||
echo ERROR: Variable LETSENCRYPT_WILDCARD is unset
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$LETSENCRYPT_EMAIL" ]; then
|
||||
echo NOTICE: You will not receive SSL certificate expiration notices
|
||||
fi
|
||||
|
||||
# Set certificate url based on LETSENCRYPT_WILDCARD value
|
||||
if [ "$LETSENCRYPT_WILDCARD" = "true" ]; then
|
||||
export LETSENCRYPT_DOMAIN=*.${DUCKDNS_DOMAIN}
|
||||
|
|
Loading…
Reference in a new issue