Roy's Projects
/
openresolv
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
7fa2412
)
Gentoo installed bind into /etc/bind, we should try and support this
author
Roy Marples
<roy@marples.name>
Fri, 16 Nov 2007 10:41:35 +0000
(10:41 +0000)
committer
Roy Marples
<roy@marples.name>
Fri, 16 Nov 2007 10:41:35 +0000
(10:41 +0000)
named
patch
|
blob
|
history
diff --git
a/named
b/named
index 842998cda71a61d6068a6a29fc2d5fbbffe8fe1d..91ebc8cd8d5ee4ee8c30307cf4b35f34ce9f1580 100755
(executable)
--- a/
named
+++ b/
named
@@
-53,7
+53,8
@@
VARS="$(resolvconf -v)"
eval "${VARS}"
# If our dir doesn't exist then don't do anything
eval "${VARS}"
# If our dir doesn't exist then don't do anything
-NAMEDB=${NAMEDB:-/etc/namedb}
+NAMEDB=/etc/namedb
+[ -d "${NAMEDB}" ] || NAMEDB="/etc/bind"
[ -d "${NAMEDB}" ] || exit 0
NAMEDOPTIONS="${NAMEDB}/resolvconf-options.conf"
[ -d "${NAMEDB}" ] || exit 0
NAMEDOPTIONS="${NAMEDB}/resolvconf-options.conf"