diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2022-05-21 14:07:13 -0400 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2022-05-21 14:07:13 -0400 |
commit | e17ee7ddf8ea20757f8082baf11681cb5300a6f4 (patch) | |
tree | bc359bad0a7cabb0a7509e6501e49a1964b666ad | |
parent | cc31f72868905cd0f446a2268d905c27c8463510 (diff) |
Update bind script
-rw-r--r-- | config/dns.nix | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/config/dns.nix b/config/dns.nix index 2ffa2f6..03ace96 100644 --- a/config/dns.nix +++ b/config/dns.nix @@ -87,10 +87,6 @@ in }; systemd.services.bind = { - preStop = lib.mkAfter '' - echo "Clean bind journals" - ${pkgs.bind}/bin/rndc -k /etc/bind/rndc.key sync -clean - ''; preStart = lib.mkAfter '' #rm /var/run/named/*.jnl || true #rm /var/run/named/*.jbk || true @@ -101,6 +97,8 @@ in continue fi echo "Copy zone $z" + rm /var/run/named/$z.jnl || true + rm /var/run/named/$z.jbk || true cp -f $z /var/run/named/ done echo "Done copying zone files" |