What was this `--renew-by-default` nonsense? :P
This commit is contained in:
parent
10f222b8a9
commit
afd4b57017
|
@ -10,14 +10,14 @@ get_certificate() {
|
||||||
|
|
||||||
local d=${CERT_DOMAINS//,*/} # read first domain
|
local d=${CERT_DOMAINS//,*/} # read first domain
|
||||||
echo "Getting certificate for $CERT_DOMAINS"
|
echo "Getting certificate for $CERT_DOMAINS"
|
||||||
certbot certonly --agree-tos --renew-by-default -n \
|
certbot certonly --agree-tos --keep -n \
|
||||||
--text --server https://acme-v01.api.letsencrypt.org/directory \
|
--text --server https://acme-v01.api.letsencrypt.org/directory \
|
||||||
--email $EMAIL -d $CERT_DOMAINS $args
|
--email $EMAIL -d $CERT_DOMAINS $args
|
||||||
ec=$?
|
ec=$?
|
||||||
echo "certbot exit code $ec"
|
echo "certbot exit code $ec"
|
||||||
if [ $ec -eq 0 ]
|
if [ $ec -eq 0 ]
|
||||||
then
|
then
|
||||||
echo "Certificate obtained for $CERT_DOMAINS! Your new certificate - named $d - /etc/letsencrypt"
|
echo "Your new certificates for $CERT_DOMAINS can be found in /etc/letsencrypt/live/$d"
|
||||||
else
|
else
|
||||||
echo "Cerbot failed for $CERT_DOMAINS. Check the logs for details."
|
echo "Cerbot failed for $CERT_DOMAINS. Check the logs for details."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue