mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-06-15 19:52:43 +00:00
Allow multiple mail addresses to be configured using -m '1st@mail.com 2nd@xyz.net'
This commit is contained in:
parent
b8447fcab8
commit
65e7350e06
4
acme.sh
4
acme.sh
@ -3766,7 +3766,7 @@ _regAccount() {
|
||||
_debug3 externalBinding "$externalBinding"
|
||||
fi
|
||||
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
|
||||
regjson="{$email_sg\"termsOfServiceAgreed\": true$externalBinding}"
|
||||
|
||||
@ -3845,7 +3845,7 @@ updateaccount() {
|
||||
_email="$(_getAccountEmail)"
|
||||
|
||||
if [ "$_email" ]; then
|
||||
updjson='{"contact": ["mailto:'$_email'"]}'
|
||||
updjson='{"contact": ['$(for E in $_email; do echo -n '"mailto:'$E'",' ; done | sed -r 's/,$//')']}'
|
||||
else
|
||||
updjson='{"contact": []}'
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user