mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 02:28:03 -07:00
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 :)
This commit is contained in:
parent
320455f7c9
commit
58c6ca95b1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue