Browse Source

Allow multiple mail addresses to be configured using -m '1st@mail.com 2nd@xyz.net'

pull/4803/head
Felix Lampe 1 year ago
parent
commit
65e7350e06
  1. 4
      acme.sh

4
acme.sh

@ -3766,7 +3766,7 @@ _regAccount() {
_debug3 externalBinding "$externalBinding" _debug3 externalBinding "$externalBinding"
fi fi
if [ "$_email" ]; then if [ "$_email" ]; then
email_sg="\"contact\": [\"mailto:$_email\"], "
email_sg="\"contact\": ['$(for E in $_email; do echo -n '"mailto:'$E'",' ; done | sed -r 's/,$//')'], "
fi fi
regjson="{$email_sg\"termsOfServiceAgreed\": true$externalBinding}" regjson="{$email_sg\"termsOfServiceAgreed\": true$externalBinding}"
@ -3845,7 +3845,7 @@ updateaccount() {
_email="$(_getAccountEmail)" _email="$(_getAccountEmail)"
if [ "$_email" ]; then if [ "$_email" ]; then
updjson='{"contact": ["mailto:'$_email'"]}'
updjson='{"contact": ['$(for E in $_email; do echo -n '"mailto:'$E'",' ; done | sed -r 's/,$//')']}'
else else
updjson='{"contact": []}' updjson='{"contact": []}'
fi fi

Loading…
Cancel
Save