From 407c0cc80268e1f2badc896c3ae883d4fa7603c7 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 31 Jan 2022 17:35:07 +0100 Subject: ... --- hosts/surtr/tls.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hosts/surtr') diff --git a/hosts/surtr/tls.nix b/hosts/surtr/tls.nix index d99e832c..4d0bc2b1 100644 --- a/hosts/surtr/tls.nix +++ b/hosts/surtr/tls.nix @@ -32,7 +32,8 @@ let case "''${mode}" in present) - ${knotCfg.cliWrappers}/bin/knotc zone-unset ${zone} "''${owner}" TXT '""' + ${knotCfg.cliWrappers}/bin/knotc zone-get ${zone} "''${owner}" TXT && \ + ${knotCfg.cliWrappers}/bin/knotc zone-unset ${zone} "''${owner}" TXT '""' ${knotCfg.cliWrappers}/bin/knotc zone-set ${zone} "''${owner}" 30 TXT "''${challenge}" ;; cleanup) -- cgit v1.2.3