Delete dyndns key during domain removal if any

This commit is contained in:
Alexandre Aubin 2021-01-22 03:01:05 +01:00
parent 2752a8e485
commit a8e11c19db

View file

@ -245,6 +245,9 @@ def domain_remove(operation_logger, domain, remove_apps=False, force=False):
os.system("rm -rf /etc/yunohost/certs/%s" % domain)
# Delete dyndns keys for this domain (if any)
os.system('rm -rf /etc/yunohost/dyndns/K%s.+*' % domain)
# Sometime we have weird issues with the regenconf where some files
# appears as manually modified even though they weren't touched ...
# There are a few ideas why this happens (like backup/restore nginx