Browse Source

add "FORCE" macro to force renew cert

neil 9 years ago
parent
commit
a2c5949dfd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      le.sh

+ 1 - 1
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