Skip to content

Commit 98d7449

Browse files
author
hestiacp
authored
Fix for suspended domain checking while LE renewing
1 parent b7a8dcd commit 98d7449

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

bin/v-update-letsencrypt-ssl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,11 @@ for user in $users; do
3333
for domain in $(search_objects 'web' 'LETSENCRYPT' 'yes' 'DOMAIN'); do
3434

3535
# Check if Web Domain is suspended
36-
websuspended=$(grep "DOMAIN='$domain'" $USER_DATA/web.conf |grep "SUSPENDED='no")
36+
websuspended=$(grep "DOMAIN='$domain'" $USER_DATA/web.conf |grep "SUSPENDED='yes")
3737
if [ ! -z "$websuspended" ]; then
3838
continue;
3939
fi;
4040

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-
4741
crt="$HESTIA/data/users/$user/ssl/$domain.crt"
4842
crt_data=$(openssl x509 -text -in "$crt")
4943
expire=$(echo "$crt_data" |grep "Not After")

0 commit comments

Comments
 (0)