From 009b5e1af67c3501fa21d044081ebe82088e3370 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Sun, 25 Oct 2020 23:11:24 +0100 Subject: [PATCH] Delete acme conf when domain is deleted --- wo/cli/plugins/site.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wo/cli/plugins/site.py b/wo/cli/plugins/site.py index 5f5c7e9..34033e5 100644 --- a/wo/cli/plugins/site.py +++ b/wo/cli/plugins/site.py @@ -17,6 +17,7 @@ from wo.core.services import WOService from wo.core.shellexec import WOShellExec, CommandExecutionError from wo.core.sslutils import SSL from wo.core.variables import WOVar +from wo.core.acme import WOAcme def wo_site_hook(app): @@ -432,6 +433,7 @@ class WOSiteDeleteController(CementBaseController): # TODO Delete nginx conf removeNginxConf(self, wo_domain) deleteSiteInfo(self, wo_domain) + WOAcme.removeconf(self, wo_domain) Log.info(self, "Deleted site {0}".format(wo_domain)) # else: # Log.error(self, " site {0} does @@ -442,6 +444,7 @@ class WOSiteDeleteController(CementBaseController): # TODO Delete nginx conf removeNginxConf(self, wo_domain) deleteSiteInfo(self, wo_domain) + WOAcme.removeconf(self, wo_domain) Log.info(self, "Deleted site {0}".format(wo_domain))