Need to test acme setting with email register process.
This commit is contained in:
@@ -8,10 +8,8 @@ start_letsencrypt() {
|
|||||||
|
|
||||||
ACME_PARAMS="--issue --standalone --keylength 4096 -d $DOMAIN --cert-file /acme.sh/$DOMAIN/cert.pem --key-file /acme.sh/$DOMAIN/key.pem --fullchain-file /acme.sh/$DOMAIN/fullchain.pem"
|
ACME_PARAMS="--issue --standalone --keylength 4096 -d $DOMAIN --cert-file /acme.sh/$DOMAIN/cert.pem --key-file /acme.sh/$DOMAIN/key.pem --fullchain-file /acme.sh/$DOMAIN/fullchain.pem"
|
||||||
|
|
||||||
if acme.sh --register-account -m $email | grep 'Already registered' ; then
|
if acme.sh --register-account -m $email $ACME_PARAMS | grep 'Already registered' ; then
|
||||||
|
|
||||||
acme.sh $ACME_PARAMS ;
|
|
||||||
else
|
|
||||||
acme.sh $ACME_PARAMS ;
|
acme.sh $ACME_PARAMS ;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user