Fix registered account issue at acme.sh process.
This commit is contained in:
@@ -6,11 +6,11 @@ start_letsencrypt() {
|
||||
|
||||
mkdir -p /acme.sh/$DOMAIN/ ;
|
||||
|
||||
acme.sh --register-account -m $email;
|
||||
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 -m $email --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.sh $ACME_PARAMS ;
|
||||
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user