From a2c5949dfdccc7344610cb05289973c635afe026 Mon Sep 17 00:00:00 2001 From: neil Date: Sun, 27 Dec 2015 18:12:34 +0800 Subject: [PATCH] add "FORCE" macro to force renew cert --- le.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/le.sh b/le.sh index 417da11e..03c62a9c 100755 --- a/le.sh +++ b/le.sh @@ -252,7 +252,7 @@ issue() { DOMAIN_CONF=$WORKING_DIR/$Le_Domain/$Le_Domain.conf if [ -f "$DOMAIN_CONF" ] ; then 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" return 2 fi