Преглед изворни кода

Fix for suspended domain checking while LE renewing

Logic should be inversed...
If you grep for suspended=no, then variable is NOT empty if it's NOT suspended
Which means it's empty only if it's suspended.
So we must grep for suspended=yes if we consider not-empty result as suspended domain.
@skullwritter 

This bug totally brakes LE renewing :)
dpeca пре 7 година
родитељ
комит
58c6ca95b1
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      bin/v-update-letsencrypt-ssl

+ 1 - 1
bin/v-update-letsencrypt-ssl

@@ -32,7 +32,7 @@ for user in $users; do
     lecounter=0
     lecounter=0
     for domain in $(search_objects 'web' 'LETSENCRYPT' 'yes' 'DOMAIN'); do
     for domain in $(search_objects 'web' 'LETSENCRYPT' 'yes' 'DOMAIN'); do
         # Working on Web domain check - if is suspended
         # Working on Web domain check - if is suspended
-        webSuspended=$(grep "DOMAIN='$domain'" $USER_DATA/web.conf |grep "SUSPENDED='no")
+        webSuspended=$(grep "DOMAIN='$domain'" $USER_DATA/web.conf |grep "SUSPENDED='yes")
         if [ ! -z "$webSuspended" ]; then
         if [ ! -z "$webSuspended" ]; then
                 continue;
                 continue;
         fi;
         fi;