Skip to content

Commit 8ef2f19

Browse files
committed
*Add missing crt variable
1 parent aa40074 commit 8ef2f19

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/v-update-letsencrypt-ssl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ for user in $users; do
3030
USER_DATA=$VESTA/data/users/$user
3131
# Checking user certificates
3232
for domain in $(search_objects 'web' 'LETSENCRYPT' 'yes' 'DOMAIN'); do
33+
crt="$VESTA/data/users/$user/ssl/$domain.crt"
3334
# Checking certificate issuer
34-
crt_data=$(openssl x509 -text -in "$VESTA/data/users/$user/ssl/$domain.crt")
35+
crt_data=$(openssl x509 -text -in "$crt")
3536

3637
expire=$(echo "$crt_data" |grep "Not After")
3738
expire=$(echo "$expire" |cut -f 2,3,4 -d :)

0 commit comments

Comments
 (0)