From f6dcd989951822fece88059089c5a6e24d7b682e Mon Sep 17 00:00:00 2001 From: neil Date: Wed, 28 Sep 2016 13:07:51 +0800 Subject: [PATCH] save api first --- acme.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/acme.sh b/acme.sh index 45f94e16..049143bf 100755 --- a/acme.sh +++ b/acme.sh @@ -1974,6 +1974,9 @@ issue() { _savedomainconf "Le_RenewHook" "$Le_RenewHook" _savedomainconf "Le_LocalAddress" "$Le_LocalAddress" + Le_API="$API" + _savedomainconf "Le_API" "$Le_API" + if [ "$Le_Alt" = "$NO_VALUE" ] ; then Le_Alt="" fi @@ -2490,9 +2493,7 @@ issue() { Le_NextRenewTime=$(_math $Le_NextRenewTime - 86400) _savedomainconf "Le_NextRenewTime" "$Le_NextRenewTime" - - Le_API="$API" - _savedomainconf "Le_API" "$Le_API" + _on_issue_success