Also remove DNS zones of deleted Subdomains, refs #581

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2018-11-17 20:19:29 +01:00
parent 13c624400e
commit 892d259805

View File

@@ -788,6 +788,8 @@ class SubDomains extends ApiCommand implements ResourceEntity
inserttask('1');
// Using nameserver, insert a task which rebuilds the server config
inserttask('4');
// remove domains DNS from powerDNS if used, #581
inserttask('11', $result['domain']);
// reduce subdomain-usage-counter
Customers::decreaseUsage($customer['customerid'], 'subdomains_used');