summaryrefslogtreecommitdiffstats
path: root/source/n/bind/rc.bind
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/bind/rc.bind')
-rw-r--r--source/n/bind/rc.bind20
1 files changed, 10 insertions, 10 deletions
diff --git a/source/n/bind/rc.bind b/source/n/bind/rc.bind
index 4cc8f49cf..169db8126 100644
--- a/source/n/bind/rc.bind
+++ b/source/n/bind/rc.bind
@@ -16,15 +16,15 @@
if [ -f /etc/default/named ] ; then . /etc/default/named ; fi
if [ -f /etc/default/rndc ] ; then . /etc/default/rndc ; fi
-# In case /etc/default/named was missing:
-if [ -z "$BIND_USER" ]; then
- BIND_USER="named"
+# In case /etc/default/named was missing, provide fallbacks:
+if [ -z "$NAMED_USER" ]; then
+ NAMED_USER="named"
fi
-if [ -z "$BIND_GROUP" ]; then
- BIND_GROUP="named"
+if [ -z "$NAMED_GROUP" ]; then
+ NAMED_GROUP="named"
fi
-if [ -z "$BIND_OPTIONS" ]; then
- BIND_OPTIONS="-u $BIND_USER"
+if [ -z "$NAMED_OPTIONS" ]; then
+ NAMED_OPTIONS="-u $NAMED_USER"
fi
# Sanity check. If /usr/sbin/named is missing then it
@@ -41,12 +41,12 @@ bind_start() {
# Make sure /var/run/named exists:
mkdir -p /var/run/named
# Make sure that /var/run/named has correct ownership:
- chown -R ${BIND_USER}:${BIND_GROUP} /var/run/named
+ chown -R ${NAMED_USER}:${NAMED_GROUP} /var/run/named
# Make sure that /var/named has correct ownership:
- chown -R ${BIND_USER}:${BIND_GROUP} /var/named
+ chown -R ${NAMED_USER}:${NAMED_GROUP} /var/named
if [ -r /etc/rndc.key ]; then
# Make sure that /etc/rndc.key has correct ownership:
- chown ${BIND_USER}:${BIND_GROUP} /etc/rndc.key
+ chown ${NAMED_USER}:${NAMED_GROUP} /etc/rndc.key
fi
# Start named:
if [ -x /usr/sbin/named ]; then