Skip to content

Commit 86469e0

Browse files
committed
Check if Let's Encrypt renewal domain is suspended.
1 parent b58daa3 commit 86469e0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

bin/v-update-letsencrypt-ssl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@ for user in $users; do
3232
lecounter=0
3333
for domain in $(search_objects 'web' 'LETSENCRYPT' 'yes' 'DOMAIN'); do
3434

35+
# Check if Web Domain is suspended
36+
websuspended=$(grep "DOMAIN='$domain'" $USER_DATA/web.conf |grep "SUSPENDED='no")
37+
if [ ! -z "$websuspended" ]; then
38+
continue;
39+
fi;
40+
41+
# Check if DNS is suspended
42+
dnssuspended=$(grep "DOMAIN='$domain'" $USER_DATA/dns.conf |grep "SUSPENDED='no")
43+
if [ ! -z "$dnssuspended" ]; then
44+
continue;
45+
fi;
46+
3547
crt="$HESTIA/data/users/$user/ssl/$domain.crt"
3648
crt_data=$(openssl x509 -text -in "$crt")
3749
expire=$(echo "$crt_data" |grep "Not After")

0 commit comments

Comments
 (0)