Skip to content
Permalink
Browse files

Merge pull request #1734 from skullwritter/patch-9

Fix for LE renewal if domain is suspended
  • Loading branch information...
dpeca committed Nov 7, 2018
2 parents c32fa67 + fa331e6 commit 2996b8afc81d668d4b508d8ffa3e9b18ebada477
Showing with 5 additions and 1 deletion.
  1. +5 −1 bin/v-update-letsencrypt-ssl
@@ -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")

0 comments on commit 2996b8a

Please sign in to comment.
You can’t perform that action at this time.