mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 13:01:52 -07:00
*Add missing crt variable
This commit is contained in:
parent
aa400746d3
commit
8ef2f19a5e
1 changed files with 2 additions and 1 deletions
|
@ -30,8 +30,9 @@ for user in $users; do
|
||||||
USER_DATA=$VESTA/data/users/$user
|
USER_DATA=$VESTA/data/users/$user
|
||||||
# Checking user certificates
|
# Checking user certificates
|
||||||
for domain in $(search_objects 'web' 'LETSENCRYPT' 'yes' 'DOMAIN'); do
|
for domain in $(search_objects 'web' 'LETSENCRYPT' 'yes' 'DOMAIN'); do
|
||||||
|
crt="$VESTA/data/users/$user/ssl/$domain.crt"
|
||||||
# Checking certificate issuer
|
# Checking certificate issuer
|
||||||
crt_data=$(openssl x509 -text -in "$VESTA/data/users/$user/ssl/$domain.crt")
|
crt_data=$(openssl x509 -text -in "$crt")
|
||||||
|
|
||||||
expire=$(echo "$crt_data" |grep "Not After")
|
expire=$(echo "$crt_data" |grep "Not After")
|
||||||
expire=$(echo "$expire" |cut -f 2,3,4 -d :)
|
expire=$(echo "$expire" |cut -f 2,3,4 -d :)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue