mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-12 17:31:47 +00:00
add "FORCE" macro to force renew cert
This commit is contained in:
parent
4a743f81a8
commit
a2c5949dfd
2
le.sh
2
le.sh
@ -252,7 +252,7 @@ issue() {
|
|||||||
DOMAIN_CONF=$WORKING_DIR/$Le_Domain/$Le_Domain.conf
|
DOMAIN_CONF=$WORKING_DIR/$Le_Domain/$Le_Domain.conf
|
||||||
if [ -f "$DOMAIN_CONF" ] ; then
|
if [ -f "$DOMAIN_CONF" ] ; then
|
||||||
source "$DOMAIN_CONF"
|
source "$DOMAIN_CONF"
|
||||||
if [ "$(date -u "+%s" )" -lt "$Le_NextRenewTime" ] ; then
|
if [ -z "$FORCE" ] && [ "$(date -u "+%s" )" -lt "$Le_NextRenewTime" ] ; then
|
||||||
_info "Skip, Next renwal time is: $Le_NextRenewTimeStr"
|
_info "Skip, Next renwal time is: $Le_NextRenewTimeStr"
|
||||||
return 2
|
return 2
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user