From a7f0eb5c239b3e8967ba1034b2acfc551e56cfc2 Mon Sep 17 00:00:00 2001 From: Christoph Date: Fri, 10 Dec 2021 13:45:00 +0100 Subject: [PATCH] bind_change_ttl.sh: Location of slave zone files to '/var/cache/bind'. --- bind_change_ttl.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bind_change_ttl.sh b/bind_change_ttl.sh index 04eb60d..df21dae 100755 --- a/bind_change_ttl.sh +++ b/bind_change_ttl.sh @@ -133,6 +133,7 @@ trap clean_up SIGHUP SIGINT SIGTERM #--------------------------------------- DEFAULT_CONF_FILE_DIR="/etc/bind" +DEFAULT_BIND_CACHE_DIR="/var/cache/bind" @@ -163,6 +164,8 @@ fi [[ -n "$CONF_FILE_DIR" ]] && DEFAULT_CONF_FILE_DIR="$CONF_FILE_DIR" +[[ -n "$BIND_CACHE_DIR" ]] && DEFAULT_BIND_CACHE_DIR="$BIND_CACHE_DIR" + if [[ -n "$ZONE_FILE_MASTER_DIR" ]] ; then DEFAULT_ZONE_FILE_MASTER_DIR="$ZONE_FILE_MASTER_DIR" else @@ -172,7 +175,7 @@ fi if [[ -n "$ZONE_FILE_SLAVE_DIR" ]] ; then DEFAULT_ZONE_FILE_SLAVE_DIR="$ZONE_FILE_SLAVE_DIR" else - DEFAULT_ZONE_FILE_SLAVE_DIR="${DEFAULT_CONF_FILE_DIR}/slave" + DEFAULT_ZONE_FILE_SLAVE_DIR="$DEFAULT_BIND_CACHE_DIR" fi if [[ -n "$ZONE_FILE_SUFFIX" ]] ; then