Fixed a bug with logging.

This commit is contained in:
Christian Busch 2018-10-12 07:41:51 +02:00
parent c38db655ff
commit 90229cf1c2

View File

@ -37,15 +37,16 @@ if ls $(dirname $0)/nsupdate.d/*.config &> /dev/null; then
# Loop through configs
for f in $(dirname $0)/nsupdate.d/*.config
do
source $f
if [[ "$SILENT" == "NO" ]]; then
echo "Starting nameserver update with config file $f ($LOG)"
fi
## Set record type to IPv4
TYPE=A
CONNECTION_TYPE=4
source $f
## Set record type to MX
if [[ "$MX" == "YES" ]]; then
TYPE=MX