From 9c2e3ee1bfcee853d0f0e05cb66ea0a7f128460e Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Thu, 27 Jul 2023 10:25:06 +0800 Subject: [PATCH] hosts/plover: fix Bind9 pre-start script --- hosts/plover/modules/services/bind.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hosts/plover/modules/services/bind.nix b/hosts/plover/modules/services/bind.nix index f3a4460e..6c855d95 100644 --- a/hosts/plover/modules/services/bind.nix +++ b/hosts/plover/modules/services/bind.nix @@ -190,13 +190,13 @@ in secretPath = path: config.sops.secrets."dns/${path}".path; in lib.mkAfter '' - { + [ -f '${domainZone'}' ] || { install -Dm0600 '${domainZone}' '${domainZone'}' - replace-secret #mailboxSecurityKey# '${secretPath "${domain}/mailbox-security-key"}' '${domainZone'}' - replace-secret #mailboxSecurityKeyRecord# '${secretPath "${domain}/mailbox-security-key-record"}' '${domainZone'}' + replace-secret '#mailboxSecurityKey#' '${secretPath "${domain}/mailbox-security-key"}' '${domainZone'}' + replace-secret '#mailboxSecurityKeyRecord#' '${secretPath "${domain}/mailbox-security-key-record"}' '${domainZone'}' } - { + [ -f '${fqdnZone'}' ] || { install -Dm0600 '${fqdnZone}' '${fqdnZone'}' } '';