1
0
Fork 0
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:
Kload 2013-06-08 17:52:39 +00:00
parent 92d3c58ea9
commit c253800081

View file

@ -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