From aa952c3e6a9b73e1fd583c76d411487c0253c24f Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 30 May 2021 17:43:24 +0200 Subject: acme@surtr: ... --- hosts/surtr/tls.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'hosts/surtr') 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 owner=''${fqdn%".${zone}."} + commited= function abort() { - ${knotCfg.cliWrappers}/bin/knotc zone-abort "${zone}" + [[ -n "''${commited}" ]] || ${knotCfg.cliWrappers}/bin/knotc zone-abort "${zone}" } ${knotCfg.cliWrappers}/bin/knotc zone-begin "${zone}" @@ -38,6 +39,7 @@ let esac ${knotCfg.cliWrappers}/bin/knotc zone-commit "${zone}" + commited=yes ''; in { config = { -- cgit v1.2.3