Run unbound-anchor when root.key is empty, not just when it is absent.

PR:		232555
Submitted by:	Ari Suutari <ari@stonepile.fi>
MFC after:	3 days
This commit is contained in:
Dag-Erling Smørgrav 2018-11-01 14:24:12 +00:00
parent 4635676d25
commit caa0408fa8

View File

@ -92,7 +92,7 @@ local_unbound_prestart()
fi fi
# Retrieve DNSSEC root key # Retrieve DNSSEC root key
if [ ! -f ${local_unbound_anchor} ] ; then if [ ! -s ${local_unbound_anchor} ] ; then
run_rc_command anchor run_rc_command anchor
fi fi
} }