From 90229cf1c23b573584b23147da37e221948c3c37 Mon Sep 17 00:00:00 2001 From: Christian Busch Date: Fri, 12 Oct 2018 07:41:51 +0200 Subject: [PATCH] Fixed a bug with logging. --- nsupdate.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nsupdate.sh b/nsupdate.sh index 96c5be1..ffc2efd 100755 --- a/nsupdate.sh +++ b/nsupdate.sh @@ -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