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