summaryrefslogtreecommitdiff
path: root/hosts/surtr/tls.nix
diff options
context:
space:
mode:
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 = {