mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-19 13:01:51 -07:00
Fix: #1731
Now checks if the domain is suspended (WEB or EMAIL or DNS) if so, continue to the next domain
This commit is contained in:
parent
20735121f7
commit
06f670046b
1 changed files with 16 additions and 1 deletions
|
@ -31,7 +31,22 @@ for user in $users; do
|
||||||
# Checking user certificates
|
# Checking user certificates
|
||||||
lecounter=0
|
lecounter=0
|
||||||
for domain in $(search_objects 'web' 'LETSENCRYPT' 'yes' 'DOMAIN'); do
|
for domain in $(search_objects 'web' 'LETSENCRYPT' 'yes' 'DOMAIN'); do
|
||||||
|
# Working on Web domain check - if is suspended
|
||||||
|
webSuspended=$(grep "DOMAIN='$domain'" $USER_DATA/web.conf |grep "SUSPENDED='no")
|
||||||
|
if [ ! -z "$webSuspended" ]; then
|
||||||
|
continue;
|
||||||
|
fi;
|
||||||
|
# Working on DNS domain check - if is suspended
|
||||||
|
dnsSuspended=$(grep "DOMAIN='$domain'" $USER_DATA/dns.conf |grep "SUSPENDED='no")
|
||||||
|
if [ ! -z "$dnsSuspended" ]; then
|
||||||
|
continue;
|
||||||
|
fi;
|
||||||
|
#dunno if this is needed, but i will ut it in the same way as web and dns
|
||||||
|
# Working on MAIL domain check - if is suspended
|
||||||
|
mailSuspended=$(grep "DOMAIN='$domain'" $USER_DATA/mail.conf |grep "SUSPENDED='no")
|
||||||
|
if [ ! -z "$mailSuspended" ]; then
|
||||||
|
continue;
|
||||||
|
fi
|
||||||
crt="$VESTA/data/users/$user/ssl/$domain.crt"
|
crt="$VESTA/data/users/$user/ssl/$domain.crt"
|
||||||
crt_data=$(openssl x509 -text -in "$crt")
|
crt_data=$(openssl x509 -text -in "$crt")
|
||||||
expire=$(echo "$crt_data" |grep "Not After")
|
expire=$(echo "$crt_data" |grep "Not After")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue