3
0
Fork 0
forked from mirrors/nixpkgs

nixos/unbound: don't fail on root trust anchor updates

Exit code on updates is 1 which makes the inital start of unbound fail.
This commit is contained in:
Franz Pletz 2018-04-01 23:56:42 +02:00
parent 085eab7ef6
commit 35f474d61d
No known key found for this signature in database
GPG key ID: 846FDED7792617B4

View file

@ -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