mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 21:21:42 +00:00
fix for renew server
This commit is contained in:
parent
df79443ed8
commit
2c28d6b10c
5
acme.sh
5
acme.sh
@ -5151,7 +5151,7 @@ $_authorizations_map"
|
|||||||
Le_CertCreateTime=$(_time)
|
Le_CertCreateTime=$(_time)
|
||||||
_savedomainconf "Le_CertCreateTime" "$Le_CertCreateTime"
|
_savedomainconf "Le_CertCreateTime" "$Le_CertCreateTime"
|
||||||
|
|
||||||
Le_CertCreateTimeStr=$(date -u)
|
Le_CertCreateTimeStr=$(_time2str "$Le_CertCreateTime")
|
||||||
_savedomainconf "Le_CertCreateTimeStr" "$Le_CertCreateTimeStr"
|
_savedomainconf "Le_CertCreateTimeStr" "$Le_CertCreateTimeStr"
|
||||||
|
|
||||||
if [ -z "$Le_RenewalDays" ] || [ "$Le_RenewalDays" -lt "0" ]; then
|
if [ -z "$Le_RenewalDays" ] || [ "$Le_RenewalDays" -lt "0" ]; then
|
||||||
@ -5289,11 +5289,10 @@ renew() {
|
|||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$Le_API" ]; then
|
if [ "$Le_API" ] && [ "$ACME_DIRECTORY" ]; then
|
||||||
if [ "$Le_API" != "$ACME_DIRECTORY" ]; then
|
if [ "$Le_API" != "$ACME_DIRECTORY" ]; then
|
||||||
_clearAPI
|
_clearAPI
|
||||||
fi
|
fi
|
||||||
export ACME_DIRECTORY="$Le_API"
|
|
||||||
#reload ca configs
|
#reload ca configs
|
||||||
ACCOUNT_KEY_PATH=""
|
ACCOUNT_KEY_PATH=""
|
||||||
ACCOUNT_JSON_PATH=""
|
ACCOUNT_JSON_PATH=""
|
||||||
|
Loading…
Reference in New Issue
Block a user