bind_change_ttl.sh: Location of slave zone files to '/var/cache/bind'.

This commit is contained in:
Christoph 2021-12-10 13:45:00 +01:00
parent d7a72b32ab
commit a7f0eb5c23

View File

@ -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