From f8f73fd28ab3bbad7f48f839802032def5a1c160 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Tue, 30 Apr 2019 16:06:16 +0200 Subject: [PATCH] add acme removal action --- wo/cli/plugins/site_functions.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wo/cli/plugins/site_functions.py b/wo/cli/plugins/site_functions.py index f8fa3d9..e23ee87 100644 --- a/wo/cli/plugins/site_functions.py +++ b/wo/cli/plugins/site_functions.py @@ -1245,6 +1245,10 @@ def doCleanupAction(self, domain='', webroot='', dbname='', dbuser='', if os.path.isfile('/etc/nginx/sites-available/{0}' .format(domain)): removeNginxConf(self, domain) + if os.path.isdir('/etc/letsencrypt/renewal/{0}_ecc' + .format(domain)): + removeAcmeConf(self, domain) + if webroot: deleteWebRoot(self, webroot) @@ -1423,6 +1427,8 @@ def setupLetsEncryptSubdomain(self, wo_domain_name): "\n to allow it to verify the site automatically.") # letsencrypt cert renewal + + def renewLetsEncrypt(self, wo_domain_name): ssl = WOShellExec.cmd_exec(