summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index bf7f8dac1b..c584725a57 100644
--- a/configure.ac
+++ b/configure.ac
@@ -287,7 +287,11 @@ AC_ARG_WITH(unbound-root-key-file, AS_HELP_STRING([--with-unbound-root-key-file]
if test "$have_win" = yes; then
unbound_root_key_file="C:\\Program Files\\Unbound\\root.key"
else
- unbound_root_key_file="/etc/unbound/root.key"
+ if test -f /var/lib/unbound/root.key;then
+ unbound_root_key_file="/var/lib/unbound/root.key"
+ else
+ unbound_root_key_file="/etc/unbound/root.key"
+ fi
fi
)