mirror of
https://github.com/serghey-rodin/vesta.git
synced 2026-03-06 12:11:12 +01:00
Merge pull request #1734 from skullwritter/patch-9
Fix for LE renewal if domain is suspended
This commit is contained in:
@@ -31,7 +31,11 @@ for user in $users; do
|
||||
# Checking user certificates
|
||||
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")
|
||||
if [ ! -z "$webSuspended" ]; then
|
||||
continue;
|
||||
fi;
|
||||
crt="$VESTA/data/users/$user/ssl/$domain.crt"
|
||||
crt_data=$(openssl x509 -text -in "$crt")
|
||||
expire=$(echo "$crt_data" |grep "Not After")
|
||||
|
||||
Reference in New Issue
Block a user