Browse Source

Update let's encrypt ssl path for mail ssl.

Raphael Schneeberger 7 years ago
parent
commit
054e865e09
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bin/v-update-letsencrypt-ssl

+ 1 - 1
bin/v-update-letsencrypt-ssl

@@ -54,7 +54,7 @@ for user in $($BIN/v-list-users plain |cut -f 1); do
     done
 
     for domain in $(search_objects 'mail' 'LETSENCRYPT' 'yes' 'DOMAIN'); do
-        crt_data=$(openssl x509 -text -in $USER_DATA/ssl/$domain.crt)
+        crt_data=$(openssl x509 -text -in $USER_DATA/ssl/mail.$domain.crt)
         not_after=$(echo "$crt_data" |grep "Not After" |cut -f 2,3,4 -d :)
         expiration=$(date -d "$not_after" +%s)
         now=$(date +%s)