[pve-devel] [common 8/9] implement the teardown function for DNS challenge

Wolfgang Link w.link at proxmox.com
Mon Oct 14 13:08:27 CEST 2019


---
 src/PVE/ACME/ACME_sh.pm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/PVE/ACME/ACME_sh.pm b/src/PVE/ACME/ACME_sh.pm
index e60fd93..fc2881c 100644
--- a/src/PVE/ACME/ACME_sh.pm
+++ b/src/PVE/ACME/ACME_sh.pm
@@ -82,4 +82,11 @@ sub setup {
     return ($url, $digest, $domain);
 }
 
+sub teardown {
+    my ($class, $auth, $token, $domain, $alias) = @_;
+
+    my $cmd = &$compose_cmd('pve-teardown', $token, $domain, $alias);
+    PVE::Tools::run_command($cmd, outfunc => $outfunc);
+}
+
 1;
-- 
2.20.1





More information about the pve-devel mailing list