diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2018-04-01 23:56:42 +0200 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2018-04-01 23:56:42 +0200 |
commit | 35f474d61d8ed34aec8bb72ffc7e7b6d27bbd712 (patch) | |
tree | 04adbe7758f0ad96901bf9255eedb7f54f040a6e /nixos | |
parent | 085eab7ef644a9c0fd38b6e81d546916db150f1d (diff) | |
download | nixpkgs-35f474d61d8ed34aec8bb72ffc7e7b6d27bbd712.tar nixpkgs-35f474d61d8ed34aec8bb72ffc7e7b6d27bbd712.tar.gz nixpkgs-35f474d61d8ed34aec8bb72ffc7e7b6d27bbd712.tar.bz2 nixpkgs-35f474d61d8ed34aec8bb72ffc7e7b6d27bbd712.tar.lz nixpkgs-35f474d61d8ed34aec8bb72ffc7e7b6d27bbd712.tar.xz nixpkgs-35f474d61d8ed34aec8bb72ffc7e7b6d27bbd712.tar.zst nixpkgs-35f474d61d8ed34aec8bb72ffc7e7b6d27bbd712.zip |
nixos/unbound: don't fail on root trust anchor updates
Exit code on updates is 1 which makes the inital start of unbound fail.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/networking/unbound.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/unbound.nix b/nixos/modules/services/networking/unbound.nix index 545ee327d59..f069a9883a7 100644 --- a/nixos/modules/services/networking/unbound.nix +++ b/nixos/modules/services/networking/unbound.nix @@ -112,7 +112,7 @@ in mkdir -m 0755 -p ${stateDir}/dev/ cp ${confFile} ${stateDir}/unbound.conf ${optionalString cfg.enableRootTrustAnchor '' - ${pkgs.unbound}/bin/unbound-anchor -a ${rootTrustAnchorFile} + ${pkgs.unbound}/bin/unbound-anchor -a ${rootTrustAnchorFile} || echo "Root anchor updated!" chown unbound ${stateDir} ${rootTrustAnchorFile} ''} touch ${stateDir}/dev/random |