mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
Merge pull request #1734 from skullwritter/patch-9
Fix for LE renewal if domain is suspended
This commit is contained in:
commit
2996b8afc8
1 changed files with 5 additions and 1 deletions
|
@ -31,7 +31,11 @@ for user in $users; do
|
||||||
# Checking user certificates
|
# Checking user certificates
|
||||||
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
|
||||||
|
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="$VESTA/data/users/$user/ssl/$domain.crt"
|
||||||
crt_data=$(openssl x509 -text -in "$crt")
|
crt_data=$(openssl x509 -text -in "$crt")
|
||||||
expire=$(echo "$crt_data" |grep "Not After")
|
expire=$(echo "$crt_data" |grep "Not After")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue