mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
added cert removal function
This commit is contained in:
parent
4048e82297
commit
e26cc8c043
1 changed files with 9 additions and 0 deletions
|
@ -83,6 +83,15 @@ fi
|
|||
# Decreasing domain value
|
||||
decrease_user_value "$user" '$U_WEB_SSL'
|
||||
|
||||
# Checking cert parents
|
||||
conf="$V_USERS/$user/web_domains.conf"
|
||||
field='$DOMAIN'
|
||||
search_string="SSL_CERT='$cert'"
|
||||
cert_parents=$(dom_clear_search)
|
||||
if [ -z "$cert_parents" ]; then
|
||||
rm -f $V_HOME/$user/conf/$cert.crt $V_HOME/$user/conf/$cert.key
|
||||
fi
|
||||
|
||||
# Adding task to the vesta pipe
|
||||
restart_schedule 'web'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue