ソースを参照

Check if Let's Encrypt renewal domain is suspended.

Raphael Schneeberger 7 年 前
コミット
86469e05da
1 ファイル変更12 行追加0 行削除
  1. 12 0
      bin/v-update-letsencrypt-ssl

+ 12 - 0
bin/v-update-letsencrypt-ssl

@@ -32,6 +32,18 @@ for user in $users; do
     lecounter=0
     for domain in $(search_objects 'web' 'LETSENCRYPT' 'yes' 'DOMAIN'); do
 
+        # Check if Web Domain is suspended
+        websuspended=$(grep "DOMAIN='$domain'" $USER_DATA/web.conf |grep "SUSPENDED='no")
+        if [ ! -z "$websuspended" ]; then
+                continue;
+        fi;
+
+        # Check if DNS is suspended
+        dnssuspended=$(grep "DOMAIN='$domain'" $USER_DATA/dns.conf |grep "SUSPENDED='no")
+        if [  ! -z "$dnssuspended" ]; then
+            continue;
+        fi;
+
         crt="$HESTIA/data/users/$user/ssl/$domain.crt"
         crt_data=$(openssl x509 -text -in "$crt")
         expire=$(echo "$crt_data" |grep "Not After")