summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-01-31 17:36:16 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-01-31 17:36:16 +0100
commit8a53478d3d43940736e936244d24bd47d5a3788c (patch)
treec8e7fcc21f47d0e2c7d3a08b03e065e10e9adb23
parent407c0cc80268e1f2badc896c3ae883d4fa7603c7 (diff)
downloadnixos-8a53478d3d43940736e936244d24bd47d5a3788c.tar
nixos-8a53478d3d43940736e936244d24bd47d5a3788c.tar.gz
nixos-8a53478d3d43940736e936244d24bd47d5a3788c.tar.bz2
nixos-8a53478d3d43940736e936244d24bd47d5a3788c.tar.xz
nixos-8a53478d3d43940736e936244d24bd47d5a3788c.zip
...
-rw-r--r--hosts/surtr/tls.nix3
1 files changed, 2 insertions, 1 deletions
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
32 32
33 case "''${mode}" in 33 case "''${mode}" in
34 present) 34 present)
35 ${knotCfg.cliWrappers}/bin/knotc zone-get ${zone} "''${owner}" TXT && \ 35 if ${knotCfg.cliWrappers}/bin/knotc zone-get ${zone} "''${owner}" TXT; then
36 ${knotCfg.cliWrappers}/bin/knotc zone-unset ${zone} "''${owner}" TXT '""' 36 ${knotCfg.cliWrappers}/bin/knotc zone-unset ${zone} "''${owner}" TXT '""'
37 fi
37 ${knotCfg.cliWrappers}/bin/knotc zone-set ${zone} "''${owner}" 30 TXT "''${challenge}" 38 ${knotCfg.cliWrappers}/bin/knotc zone-set ${zone} "''${owner}" 30 TXT "''${challenge}"
38 ;; 39 ;;
39 cleanup) 40 cleanup)