Explorar o código

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 %!s(int64=7) %!d(string=hai) anos
pai
achega
58c6ca95b1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
     for domain in $(search_objects 'web' 'LETSENCRYPT' 'yes' 'DOMAIN'); do
         # 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
                 continue;
         fi;