mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Remove certs at domain deletion
This commit is contained in:
parent
92d3c58ea9
commit
c253800081
1 changed files with 1 additions and 0 deletions
|
@ -182,6 +182,7 @@ def domain_remove(domains):
|
|||
for domain in domains:
|
||||
if yldap.remove('virtualdomain=' + domain + ',ou=domains'):
|
||||
try:
|
||||
shutil.rmtree('/etc/yunohost/certs/'+ domain)
|
||||
os.remove('/var/lib/bind/'+ domain +'.zone')
|
||||
except:
|
||||
pass
|
||||
|
|
Loading…
Add table
Reference in a new issue