summaryrefslogtreecommitdiff
path: root/hosts/surtr/tls.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-05-30 17:43:24 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2021-05-30 17:43:24 +0200
commitaa952c3e6a9b73e1fd583c76d411487c0253c24f (patch)
treea8fa1682bb178098bed301965a2691f087206b91 /hosts/surtr/tls.nix
parent810835b36cc1f3d50e7090f8b85ce845f9d6a37c (diff)
downloadnixos-aa952c3e6a9b73e1fd583c76d411487c0253c24f.tar
nixos-aa952c3e6a9b73e1fd583c76d411487c0253c24f.tar.gz
nixos-aa952c3e6a9b73e1fd583c76d411487c0253c24f.tar.bz2
nixos-aa952c3e6a9b73e1fd583c76d411487c0253c24f.tar.xz
nixos-aa952c3e6a9b73e1fd583c76d411487c0253c24f.zip
acme@surtr: ...
Diffstat (limited to 'hosts/surtr/tls.nix')
-rw-r--r--hosts/surtr/tls.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/hosts/surtr/tls.nix b/hosts/surtr/tls.nix
index b84ee6d6..643230d0 100644
--- a/hosts/surtr/tls.nix
+++ b/hosts/surtr/tls.nix
@@ -16,8 +16,9 @@ let
16 16
17 owner=''${fqdn%".${zone}."} 17 owner=''${fqdn%".${zone}."}
18 18
19 commited=
19 function abort() { 20 function abort() {
20 ${knotCfg.cliWrappers}/bin/knotc zone-abort "${zone}" 21 [[ -n "''${commited}" ]] || ${knotCfg.cliWrappers}/bin/knotc zone-abort "${zone}"
21 } 22 }
22 23
23 ${knotCfg.cliWrappers}/bin/knotc zone-begin "${zone}" 24 ${knotCfg.cliWrappers}/bin/knotc zone-begin "${zone}"
@@ -38,6 +39,7 @@ let
38 esac 39 esac
39 40
40 ${knotCfg.cliWrappers}/bin/knotc zone-commit "${zone}" 41 ${knotCfg.cliWrappers}/bin/knotc zone-commit "${zone}"
42 commited=yes
41 ''; 43 '';
42in { 44in {
43 config = { 45 config = {